Skip to content

Commit

Permalink
refactor(FileUploadDialog.tsx): remove initialFileName prop from File…
Browse files Browse the repository at this point in the history
…UploadForm

The initialFileName prop was removed from the FileUploadForm component. The value was piped from the fileName state using an Option getter, but this logic is not needed anymore. The component now handles the file name internally.
  • Loading branch information
ktun95 committed Mar 8, 2025
1 parent 7d11cef commit 835abee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/editor-toolbar/src/components/FileUploadDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ const FileUploadDialog = ({ open }: FileUploadDialogProperties) => {
handleClose={handleClose}
handleClearForm={handleClearForm}
fileUrl={url}
initialFileName={pipe(
fileName,
OgetOrElse(() => ""),
)}
/>
))
.otherwise(() => (
Expand Down

0 comments on commit 835abee

Please sign in to comment.