bill 1 tydzień temu
rodzic
commit
5b6f9a4b80
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/store/sys.ts

+ 1 - 1
src/store/sys.ts

@@ -41,7 +41,7 @@ watchEffect(() => (document.title = title.value));
 
 let currentTempIndex = 0;
 export const isTemploraryID = (id: string) =>
-  id.includes("__currentTempIndex__");
+  typeof id === 'string' && id.includes("__currentTempIndex__");
 export const createTemploraryID = () =>
   `__currentTempIndex__${currentTempIndex++}`;