2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 18:56:31 +00:00

Prevent multiple fetch of settings stage (#9878)

* Prevent multiple fetch of settings stage

- Cached in the useSettingsState hook already

* Error handling
This commit is contained in:
Oliver
2025-06-27 09:16:01 +10:00
committed by GitHub
parent 9a2097ddd0
commit 9a8d2a6a2e
3 changed files with 53 additions and 20 deletions

View File

@@ -50,6 +50,7 @@ export interface SettingsStateProps {
lookup: SettingsLookup;
fetchSettings: () => Promise<boolean>;
loaded: boolean;
isError: boolean;
endpoint: ApiEndpoints;
pathParams?: PathParams;
getSetting: (key: string, default_value?: string) => string; // Return a raw setting value