fixed type error
This commit is contained in:
+1
-1
@@ -633,7 +633,7 @@ export const updateTemplate = async (id: string, updates: Partial<TaskTemplate>)
|
||||
};
|
||||
|
||||
export const removeTemplate = async (id: string) => {
|
||||
setStore("templates", (t) => t.filter(tmpl => tmpl.id !== id));
|
||||
setStore("templates", (t) => (t || []).filter(tmpl => tmpl.id !== id));
|
||||
await syncPreferences();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user