add path to new inbox file in pinia store
Not ideal to have data in multiple store (pinia and PouchDB) but it work this way. May need a refactoring.
This commit is contained in:
@@ -50,7 +50,10 @@ watch(mode, async (newMode) => {
|
||||
|
||||
newContent.value = initialContent
|
||||
const { saveCacheNote } = prepareNoteCache(newSha)
|
||||
await saveCacheNote(encodeUTF8ToBase64(content))
|
||||
await saveCacheNote(encodeUTF8ToBase64(content), {
|
||||
editedSha: newSha,
|
||||
path: newContentPath
|
||||
})
|
||||
|
||||
addStackedNote('', newSha)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user