mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 00:02:19 +00:00
Only remove from localStorage
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user