Skip to content

Commit

Permalink
lint issue resloved
Browse files Browse the repository at this point in the history
  • Loading branch information
Charan-hs committed Jul 25, 2023
1 parent 4e8b68d commit ff278da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ function AttachmentModal(props) {
}
return true;
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[props.translate],
);
/**
Expand All @@ -234,6 +235,7 @@ function AttachmentModal(props) {
if (!isDirectoryCheck(_data)) {
return;
}
/* eslint no-underscore-dangle: 0 */
let _file = _data;
if (typeof _data.getAsFile === 'function') {
_file = _data.getAsFile();
Expand Down Expand Up @@ -270,7 +272,7 @@ function AttachmentModal(props) {
setModalType(inputModalType);
}
},
[isValidFile, getModalType],
[isValidFile, getModalType,isDirectoryCheck],
);

/**
Expand Down

0 comments on commit ff278da

Please sign in to comment.