fix(frontend): if the modules returns and error we want to use an empty array

This commit is contained in:
2025-03-15 15:29:25 -05:00
parent cb7a4068fc
commit 2370d45220

View File

@@ -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: []});
}
},
}));