Skip to content

Commit

Permalink
Merge pull request #11824 from owncloud/fix/files-appearing-in-file-list
Browse files Browse the repository at this point in the history
fix: files wrongly appearing in the file list
  • Loading branch information
kulmann authored Oct 28, 2024
2 parents 67fdcfe + 01f1887 commit bb17249
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-files-appearing-in-file-list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Files appearing in file list

We've fixed a bug where files would wrongly appear in the current file list during an ongoing upload.

https://github.com/owncloud/web/issues/11803
https://github.com/owncloud/web/pull/11824
6 changes: 5 additions & 1 deletion packages/web-runtime/src/container/sse/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ export const onSSEProcessingFinishedEvent = async ({
path: '',
fileId: sseData.itemid
})
resourcesStore.upsertResource(resource)

// check again for the current folder in case the user has navigated away in the meantime
if (isItemInCurrentFolder({ resourcesStore, parentFolderId: sseData.parentitemid })) {
resourcesStore.upsertResource(resource)
}
})
}

Expand Down

0 comments on commit bb17249

Please sign in to comment.