Fix moderation queue tab switch reload

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 17:20:35 +00:00
parent f9e12596c7
commit 10950a4034
3 changed files with 42 additions and 8 deletions

View File

@@ -157,6 +157,12 @@ export function useAdminSettings() {
return cleanValue === 'true' || cleanValue === true;
};
const getRefreshOnTabVisible = (): boolean => {
const value = getSettingValue('system.refresh_on_tab_visible', 'false');
const cleanValue = typeof value === 'string' ? value.replace(/"/g, '') : value;
return cleanValue === 'true' || cleanValue === true;
};
return {
settings,
isLoading,
@@ -180,5 +186,6 @@ export function useAdminSettings() {
getAutoRefreshStrategy,
getPreserveInteractionState,
getUseRealtimeQueue,
getRefreshOnTabVisible,
};
}