fix: loadCategories error handling and invalid Tailwind opacity fractions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-13 02:34:03 -04:00
parent 69404e0e12
commit 4269aea015
3 changed files with 9 additions and 5 deletions

View File

@@ -59,8 +59,12 @@ export const useScriptGeneratorStore = create<ScriptGeneratorState>()((set, get)
generateError: null,
loadCategories: async () => {
const categories = await scriptsApi.getCategories()
set({ categories })
try {
const categories = await scriptsApi.getCategories()
set({ categories })
} catch {
// silently ignore — categories remain empty, UI degrades gracefully
}
},
loadTemplates: async () => {