mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fetch server state when refetching all global states (#6949)
- Required for plugin permissions, for example
This commit is contained in:
parent
7ca420ebdc
commit
b68a1cc1b8
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user