Fix bug in mapping existingFilesInDifferentCollection
This commit is contained in:
parent
e18cd6e773
commit
f3fe162b22
1 changed files with 3 additions and 1 deletions
|
@ -603,7 +603,9 @@ class FileUploader {
|
|||
// case c and d
|
||||
final File? fileExistsButDifferentCollection =
|
||||
existingUploadedFiles.firstWhereOrNull(
|
||||
(e) => e.collectionID != toCollectionID,
|
||||
(e) =>
|
||||
e.collectionID != toCollectionID &&
|
||||
(e.localID == null || e.localID == fileToUpload.localID),
|
||||
);
|
||||
if (fileExistsButDifferentCollection != null) {
|
||||
_logger.fine(
|
||||
|
|
Loading…
Add table
Reference in a new issue