Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix typing

Smaug6739fa385e42af5d
diff --git a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
index d65defe1..3154652d 100644
--- a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -325,7 +325,6 @@ const state = EditorState.create({
history(),
drawSelection(),
autocompletion(),
- // @ts-expect-error normal custom key map
keymap.of([...defaultKeymap, ...historyKeymap, ...searchKeymap, indentWithTab, ...markdownKeysmap]),
markdown({ base: markdownLanguage }),
updateListener,
diff --git a/frontend/app/pages/dashboard/docs/_modals/DocumentMeta.vue b/frontend/app/pages/dashboard/docs/_modals/DocumentMeta.vue
index c678052b..051b9918 100644
--- a/frontend/app/pages/dashboard/docs/_modals/DocumentMeta.vue
+++ b/frontend/app/pages/dashboard/docs/_modals/DocumentMeta.vue
@@ -32,7 +32,7 @@
<AppSelect
v-model="document.parent_id as string"
:items="documentsTree"
- :disabled="(i:Item) => i.data?.type !== 'document'"
+ :disabled="(i) => (i as Item).data?.type !== 'document'"
placeholder="Select a document parent"
:nullable="true"
/>