fix: loadCategories error handling and invalid Tailwind opacity fractions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user