From 8f7a067b7519e27e5c0d3348a5743f54fa2d94a9 Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Sat, 31 Jan 2026 17:40:00 -0600 Subject: [PATCH] fixed type error --- src/store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.ts b/src/store/index.ts index 73f69b4..e320a1c 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -633,7 +633,7 @@ export const updateTemplate = async (id: string, updates: Partial) }; 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(); };