Skip to content

Commit

Permalink
fix lint #1075
Browse files Browse the repository at this point in the history
  • Loading branch information
asuresh-code committed Jan 14, 2025
1 parent 3f4e8db commit b117bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/editFileDialog.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const EditFileDialog = (props: FileDialogProps) => {

const selectedFileCopy: ObjectFilePatch = React.useMemo(
() => (selectedFile ? { ...selectedFile, file_name: initialName } : {}),
[selectedFile]
[selectedFile, initialName]
);

const initialFile: ObjectFilePatch = React.useMemo(
Expand Down Expand Up @@ -109,7 +109,7 @@ const EditFileDialog = (props: FileDialogProps) => {

const isTitleUpdated = fileData.title !== selectedFileCopy.title;

let fileToEdit: ObjectFilePatch = {};
const fileToEdit: ObjectFilePatch = {};

if (isFileNameUpdated)
fileToEdit.file_name = fileData.file_name + extension;
Expand Down

0 comments on commit b117bbc

Please sign in to comment.