mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 01:07:04 +02:00
fix(editor): Fix UI being blocked from loading while data table limits are being fetched (#19871)
This commit is contained in:
parent
ded6db694a
commit
436c5abd83
|
|
@ -191,12 +191,18 @@ export async function initializeAuthenticatedFeatures(
|
|||
}
|
||||
|
||||
if (settingsStore.isDataTableFeatureEnabled) {
|
||||
const { quotaStatus } = await dataStoreStore.fetchDataStoreSize();
|
||||
if (quotaStatus === 'error') {
|
||||
uiStore.pushBannerToStack('DATA_STORE_STORAGE_LIMIT_ERROR');
|
||||
} else if (quotaStatus === 'warn') {
|
||||
uiStore.pushBannerToStack('DATA_STORE_STORAGE_LIMIT_WARNING');
|
||||
}
|
||||
void dataStoreStore
|
||||
.fetchDataStoreSize()
|
||||
.then(({ quotaStatus }) => {
|
||||
if (quotaStatus === 'error') {
|
||||
uiStore.pushBannerToStack('DATA_STORE_STORAGE_LIMIT_ERROR');
|
||||
} else if (quotaStatus === 'warn') {
|
||||
uiStore.pushBannerToStack('DATA_STORE_STORAGE_LIMIT_WARNING');
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Failed to fetch data table limits:', error);
|
||||
});
|
||||
}
|
||||
|
||||
if (insightsStore.isSummaryEnabled) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user