Only remove from localStorage

This commit is contained in:
Diego Imbert
2026-05-12 14:59:17 +02:00
parent bee09613b5
commit daeab3f09f
-8
View File
@@ -160,14 +160,6 @@ export const UserDraft = {
remove(itemKind: UserDraftItemKind, path: string, opts?: UserDraftOptions): void {
const ws = resolveWorkspace(opts)
const mk = mapKey(ws, itemKind, path)
const entry = entries.get(mk)
if (entry) {
// Notify observers; useLocalStorageValue's setter handles localStorage removal.
entry.state.val = undefined
return
}
if (isLocalOnly(path)) return
try {
localStorage.removeItem(localStorageKey(ws, itemKind, path))
} catch (e) {