reload the records counter and remove drafts failures from LocalStorage

This commit is contained in:
Gani Georgiev
2023-10-01 15:57:20 +03:00
parent d69181cfef
commit 5732bc38e3
4 changed files with 12 additions and 4 deletions

View File

@@ -184,6 +184,7 @@
// ignore local storage errors in case the serialized data
// exceed the browser localStorage single value quota
console.warn("updateDraft failure:", e);
window.localStorage.removeItem(draftKey());
}
}
@@ -535,11 +536,12 @@
{/if}
</svelte:fragment>
<div class="tabs-content">
<div class="tabs-content no-animations">
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<form
id={formId}
class="tab-item"
class:no-pointer-events={isLoading}
class:active={activeTab === tabFormKey}
on:submit|preventDefault={save}
on:keydown={handleFormKeydown}