fix(common): prevent exception with ShortcodeListAdapter initialization (#3917)

This commit is contained in:
James George 2024-03-20 20:29:04 +05:30 committed by GitHub
parent 7621ff2961
commit e53382666a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -273,6 +273,10 @@ const loading = computed(
)
onLoggedIn(() => {
if (adapter.isInitialized()) {
return
}
try {
// wait for a bit to let the auth token to be set
// because in some race conditions, the token is not set this fixes that