prune: remove theme in litenote config

This commit is contained in:
Julien Calixte
2025-02-11 22:21:32 +01:00
parent 4619fcf6da
commit 0f119d1f6a
3 changed files with 15 additions and 36 deletions

View File

@@ -13,19 +13,17 @@ export const useNoteView = (containerClass: string) => {
const { isMobile } = useOverlay(false)
const { stackedNotes, addStackedNote } = useRouteQueryStackedNotes()
const titles = computed(
() =>
stackedNotes.value?.reduce((obj: Record<string, string>, note) => {
if (!note) {
return obj
}
const filePath =
store.files.find((file) => file.sha === note)?.path ?? ''
obj[note] = pathToNotePathTitle(filePath)
const titles = computed(() =>
stackedNotes.value?.reduce((obj: Record<string, string>, note) => {
if (!note) {
return obj
}, {})
}
const filePath = store.files.find((file) => file.sha === note)?.path ?? ''
obj[note] = pathToNotePathTitle(filePath)
return obj
}, {})
)
const unsubscribeLink = noteEventBus.addEventBusListener(