upadted util name to sortFilesIntoCollections
This commit is contained in:
parent
539ab66bc1
commit
208b8918d9
|
@ -13,7 +13,7 @@ import { getToken } from 'utils/common/key';
|
|||
import {
|
||||
fileIsHEIC,
|
||||
convertHEIC2JPEG,
|
||||
sortFilesIntoCollection,
|
||||
sortFilesIntoCollections,
|
||||
} from 'utils/file';
|
||||
const ENDPOINT = getEndpoint();
|
||||
|
||||
|
@ -148,7 +148,7 @@ class UploadService {
|
|||
this.setUploadErrors = setUploadErrors;
|
||||
this.metadataMap = new Map<string, object>();
|
||||
this.progressBarProps = progressBarProps;
|
||||
this.existingFilesCollectionWise = sortFilesIntoCollection(
|
||||
this.existingFilesCollectionWise = sortFilesIntoCollections(
|
||||
existingFiles
|
||||
);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ export function fileIsHEIC(name: string) {
|
|||
return name.endsWith(TYPE_HEIC);
|
||||
}
|
||||
|
||||
export function sortFilesIntoCollection(files: file[]) {
|
||||
export function sortFilesIntoCollections(files: file[]) {
|
||||
const collectionWiseFiles = new Map<number, file[]>();
|
||||
for (let file of files) {
|
||||
if (!collectionWiseFiles.has(file.collectionID)) {
|
||||
|
|
Loading…
Reference in a new issue