Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: remove `unlocked` session type

Abdullah Atta03f8332c6755
diff --git a/apps/web/src/stores/editor-store.ts b/apps/web/src/stores/editor-store.ts
index 2aece99a4..c03479586 100644
--- a/apps/web/src/stores/editor-store.ts
+++ b/apps/web/src/stores/editor-store.ts
@@ -118,7 +118,6 @@ export type EditorSession =
export type SessionType = keyof SessionTypeMap;
type SessionTypeMap = {
- unlocked: DefaultEditorSession;
default: DefaultEditorSession;
locked: LockedEditorSession;
new: NewEditorSession;
@@ -530,7 +529,7 @@ class EditorStore extends BaseStore<EditorStore> {
content: partial.content
});
} else {
- this.updateSession(id, ["unlocked", "default"], {
+ this.updateSession(id, ["default"], {
preview: false,
attachmentsLength: attachmentsLength,
note