🐛 (flux note) update query strings on fleeting notes

This commit is contained in:
2021-03-22 23:13:56 +01:00
parent eb6bb9e0fa
commit 165cfb96e7
4 changed files with 16 additions and 10 deletions

View File

@@ -10,20 +10,16 @@ export const useQueryStackedNotes = () => {
const { query } = useRoute()
const initResetStackedNote = () =>
(Array.isArray(query.stackedNotes)
(stackedNotes.value = (Array.isArray(query.stackedNotes)
? query.stackedNotes
: [query.stackedNotes]
)
.map((n) => n?.toString())
.filter((n) => !!n) as string[]
const setStackedNotes = () => {
stackedNotes.value = initResetStackedNote()
}
.filter((n) => !!n) as string[])
if (initial) {
initial = false
setStackedNotes()
initResetStackedNote()
}
return {