Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: files wrongly appearing in the file list #11824

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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