diff --git a/src/store/files/mutations.ts b/src/store/files/mutations.ts index d123108d..4b618cb9 100644 --- a/src/store/files/mutations.ts +++ b/src/store/files/mutations.ts @@ -37,13 +37,13 @@ export const mutations: MutationTree = { const fileIndex = path?.findIndex((element: FileStateFile) => element.filename === filename) if (path && fileIndex !== -1) { // eslint-disable-next-line - const currentFile = path[fileIndex] as any + const currentFile = {...path[fileIndex]} as any allowedMetadata.forEach((key: string) => { if (key in payload) currentFile[key] = payload[key] }) currentFile.metadataPulled = true - //Vue.set(path, fileIndex, currentFile) + Vue.set(path, fileIndex, currentFile) } else window.console.error('file not found in filetree: '+payload.filename) },