rename
This commit is contained in:
parent
19a5752eff
commit
bde91417d3
|
@ -9,7 +9,7 @@ import {
|
|||
import { logError } from 'utils/sentry';
|
||||
import { getMetadataJSONMapKey, parseMetadataJSON } from './metadataService';
|
||||
import {
|
||||
areSameFileWithCollections,
|
||||
areFileWithCollectionsSame,
|
||||
getFileNameSize,
|
||||
segregateMetadataAndMediaFiles,
|
||||
} from 'utils/upload';
|
||||
|
@ -344,7 +344,7 @@ class UploadManager {
|
|||
if (fileUploadResult !== null && isElectron()) {
|
||||
this.remainingFiles = this.remainingFiles.filter(
|
||||
(file) =>
|
||||
!areSameFileWithCollections(file, fileWithCollection)
|
||||
!areFileWithCollectionsSame(file, fileWithCollection)
|
||||
);
|
||||
ImportService.updatePendingUploads(this.remainingFiles);
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ export function getFileNameSize(file: File | ElectronFile) {
|
|||
return `${file.name}_${convertBytesToHumanReadable(file.size)}`;
|
||||
}
|
||||
|
||||
export function areSameFileWithCollections(
|
||||
export function areFileWithCollectionsSame(
|
||||
firstFile: FileWithCollection,
|
||||
secondFile: FileWithCollection
|
||||
): boolean {
|
||||
|
|
Loading…
Reference in a new issue