fix(frontend): if the modules returns and error we want to use an empty array
This commit is contained in:
@@ -29,6 +29,7 @@ export const useModuleStore = create<SettingState>()((set) => ({
|
||||
set({modules: data.data});
|
||||
} catch (error) {
|
||||
console.error("Failed to fetch settings:", error);
|
||||
set({modules: []});
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user