fix bug where task search would be called multiple times

This commit is contained in:
marlon-erler
2024-07-28 13:15:15 +02:00
parent 61b15cecee
commit df8a17eb75
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ export class IndexManager<T> {
export function getLocalStorageItemAndClear(key: string): string | null {
const value: string | null = localStorage.getItem(key);
localStorage.removeItem(key);
console.log(localStorage.getItem(key));
if (value != null) localStorage.setItem(`_${key}`, value);
return value;
}