linting
This commit is contained in:
@@ -13,17 +13,19 @@ export const useNote = (containerClass: string) => {
|
|||||||
const { isMobile } = useOverlay(false)
|
const { isMobile } = useOverlay(false)
|
||||||
const { stackedNotes, addStackedNote } = useRouteQueryStackedNotes()
|
const { stackedNotes, addStackedNote } = useRouteQueryStackedNotes()
|
||||||
|
|
||||||
const titles = computed(() =>
|
const titles = computed(
|
||||||
stackedNotes.value?.reduce((obj: Record<string, string>, note) => {
|
() =>
|
||||||
if (!note) {
|
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
|
return obj
|
||||||
}
|
}, {})
|
||||||
const filePath = store.files.find((file) => file.sha === note)?.path ?? ''
|
|
||||||
|
|
||||||
obj[note] = pathToNotePathTitle(filePath)
|
|
||||||
|
|
||||||
return obj
|
|
||||||
}, {})
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const unsubscribeLink = noteEventBus.addEventBusListener(
|
const unsubscribeLink = noteEventBus.addEventBusListener(
|
||||||
|
|||||||
Reference in New Issue
Block a user