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:
Julien Calixte
2023-11-26 10:35:38 +01:00
parent 086f7664df
commit c7ea52c7f8
6 changed files with 33 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ export const useFile = (sha: Ref<string> | string, retrieveContent = true) => {
const path = computed(() => {
const file = store.files.find((file) => file.sha === toValue(sha))
return file?.path ?? ''
return file?.path
})
const {