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 nullable option

Smaug673920c3172a374f
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 7a70193f..0d7a53ed 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -11,7 +11,7 @@
<input ref="searchInput" v-model="search" type="text" placeholder="Search..." class="search-input" @keydown="handleKeyDown" @click.stop />
<Teleport to="body">
<ul v-if="open" ref="portalList" class="dropdown" :style="dropdownStyle">
- <AppSelectNode :node="{ id: '', label: 'β€” Remove selection β€”' }" :level="0" @select="clearSelection" />
+ <AppSelectNode v-if="nullable" :node="{ id: '', label: 'β€” Remove selection β€”' }" :level="0" @select="clearSelection" />
<AppSelectNode v-for="item in filteredItems" :key="item.id" :node="item" :level="0" :disabled="disabled" @select="handleSelect" />
</ul>
</Teleport>