Skip to content

[Bug]: folderId property does not exist on file upload type in MyFiles.tsx #202

Description

@Git-Shubham14

Description

At line 703 in MyFiles.tsx, an object literal passes a folderId property that does not exist in the expected type definition. This causes a TypeScript error and indicates a type mismatch between the upload payload and the defined interface.

Error

Object literal may only specify known properties, and 'folderId' does not exist in type

'{ fileName: string; fileUrl: string; fileType?: string | undefined; fileSize?: string | undefined; fileSizeBytes?: number | undefined; checksum?: string | undefined; }'.

ts(2353) - Line 703

File

client/src/components/Home/MyFiles.tsx

Steps to Reproduce

  1. Open client/src/components/Home/MyFiles.tsx in VS Code
  2. TypeScript will highlight line 703 with the error

Expected Behaviour

Either the type definition should include folderId as an optional property, or the folderId property should be removed from the object literal if it is not needed.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions