refactor(editor): Do not make rest api calls for disabled features (no-changelog) (#9046)
This commit is contained in:
committed by
GitHub
parent
217b07d735
commit
637b6c4d3e
@@ -24,15 +24,17 @@ export async function initializeCore() {
|
||||
const versionsStore = useVersionsStore();
|
||||
|
||||
await settingsStore.initialize();
|
||||
await usersStore.initialize();
|
||||
if (!settingsStore.isPreviewMode) {
|
||||
await usersStore.initialize();
|
||||
|
||||
void versionsStore.checkForNewVersions();
|
||||
void versionsStore.checkForNewVersions();
|
||||
|
||||
if (settingsStore.isCloudDeployment) {
|
||||
try {
|
||||
await initializeCloudHooks();
|
||||
} catch (e) {
|
||||
console.error('Failed to initialize cloud hooks:', e);
|
||||
if (settingsStore.isCloudDeployment) {
|
||||
try {
|
||||
await initializeCloudHooks();
|
||||
} catch (e) {
|
||||
console.error('Failed to initialize cloud hooks:', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user