Fetch server state when refetching all global states (#6949)

- Required for plugin permissions, for example
This commit is contained in:
Oliver 2024-04-04 14:14:55 +11:00 committed by GitHub
parent 7ca420ebdc
commit b68a1cc1b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import { setApiDefaults } from '../App';
import { useServerApiState } from './ApiState';
import { useSessionState } from './SessionState';
import { useGlobalSettingsState, useUserSettingsState } from './SettingsState';
import { useGlobalStatusState } from './StatusState';
@ -131,6 +132,7 @@ export function fetchGlobalStates() {
setApiDefaults();
useServerApiState.getState().fetchServerApiState();
useUserState.getState().fetchUserState();
useUserSettingsState.getState().fetchSettings();
useGlobalSettingsState.getState().fetchSettings();