Fix warning

A component is changing an uncontrolled input to be controlled. (UploaderName.tsx 111)
This commit is contained in:
Manav Rathi
2025-07-02 10:17:00 +05:30
parent 3a46f9994f
commit 9bdb0f6a94
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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,