fix minor issues
This commit is contained in:
parent
7b45aee757
commit
10be89e72c
|
@ -64,9 +64,9 @@ export interface ProgressUpdater {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UploadAsset {
|
export interface UploadAsset {
|
||||||
isLivePhoto: boolean;
|
isLivePhoto?: boolean;
|
||||||
file: File;
|
file?: File;
|
||||||
livePhotoAssets: LivePhotoAssets;
|
livePhotoAssets?: LivePhotoAssets;
|
||||||
}
|
}
|
||||||
export interface LivePhotoAssets {
|
export interface LivePhotoAssets {
|
||||||
image: globalThis.File;
|
image: globalThis.File;
|
||||||
|
|
|
@ -91,7 +91,7 @@ export function segregateFiles(
|
||||||
livePhotoFiles.push({
|
livePhotoFiles.push({
|
||||||
collectionID: collectionID,
|
collectionID: collectionID,
|
||||||
isLivePhoto: true,
|
isLivePhoto: true,
|
||||||
livePhotoAsset: { image: imageFile, video: videoFile },
|
livePhotoAssets: { image: imageFile, video: videoFile },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ export function addKeysToFilesToBeUploaded(files: FileWithCollection[]) {
|
||||||
function getFileToBeUploadedKey(fileWithCollection: FileWithCollection) {
|
function getFileToBeUploadedKey(fileWithCollection: FileWithCollection) {
|
||||||
const fileName = splitFilenameAndExtension(
|
const fileName = splitFilenameAndExtension(
|
||||||
fileWithCollection.isLivePhoto
|
fileWithCollection.isLivePhoto
|
||||||
? fileWithCollection.livePhotoAsset[0].name + '-livePhoto'
|
? fileWithCollection.livePhotoAssets[0].name + '-livePhoto'
|
||||||
: fileWithCollection.file.name
|
: fileWithCollection.file.name
|
||||||
)[0];
|
)[0];
|
||||||
return fileName;
|
return fileName;
|
||||||
|
|
Loading…
Reference in a new issue