diff --git a/packages/web-app-files/src/store/mutations.ts b/packages/web-app-files/src/store/mutations.ts index ca0688e4066..b66b929fa91 100644 --- a/packages/web-app-files/src/store/mutations.ts +++ b/packages/web-app-files/src/store/mutations.ts @@ -155,7 +155,7 @@ export default { }, UPSERT_RESOURCES(state, resources) { - const otherFiles = state.files.filter((f) => !resources.some((r) => r.id === f.id)) + const otherFiles = state.files.filter((f) => !resources.some((r) => r.path === f.path)) state.files = [...otherFiles, ...resources] },