Fix warning
A component is changing an uncontrolled input to be controlled. (UploaderName.tsx 111)
This commit is contained in:
@@ -259,7 +259,7 @@ class UploadManager {
|
||||
private collections: Map<number, Collection>;
|
||||
private uploadInProgress: boolean;
|
||||
private publicAlbumsCredentials: PublicAlbumsCredentials | undefined;
|
||||
private uploaderName: string;
|
||||
private uploaderName: string | undefined;
|
||||
/**
|
||||
* When `true`, then the next call to {@link abortIfCancelled} will throw.
|
||||
*
|
||||
@@ -295,7 +295,7 @@ class UploadManager {
|
||||
this.itemsToBeUploaded = [];
|
||||
this.failedItems = [];
|
||||
this.parsedMetadataJSONMap = parsedMetadataJSONMap ?? new Map();
|
||||
this.uploaderName = null;
|
||||
this.uploaderName = undefined;
|
||||
this.shouldUploadBeCancelled = false;
|
||||
|
||||
this.uiService.reset();
|
||||
|
||||
@@ -652,7 +652,7 @@ interface UploadContext {
|
||||
*/
|
||||
export const upload = async (
|
||||
{ collection, localID, fileName, ...uploadAsset }: UploadableUploadItem,
|
||||
uploaderName: string,
|
||||
uploaderName: string | undefined,
|
||||
existingFiles: EnteFile[],
|
||||
parsedMetadataJSONMap: Map<string, ParsedMetadataJSON>,
|
||||
worker: CryptoWorker,
|
||||
|
||||
Reference in New Issue
Block a user