Skip to content

Commit

Permalink
ignore deps rule
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Mar 1, 2024
1 parent 8b0d417 commit 45585e8
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@ function WorkspaceWorkflowsApproverPage({policy, policyMembers, personalDetails,
return sectionsArray;
}, [formattedPolicyMembers, formattedApprover, searchTerm, translate]);

const headerMessage = useMemo(() => {
return searchTerm && !sections[0].data.length ? translate('common.noResultsFound') : '';
const headerMessage = useMemo(
() => (searchTerm && !sections[0].data.length ? translate('common.noResultsFound') : ''),

//eslint-disable-next-line react-hooks/exhaustive-deps
}, [translate, sections]);
// eslint-disable-next-line react-hooks/exhaustive-deps
[translate, sections],
);

const setPolicyApprover = (member: MemberOption) => {
if (!policy?.approvalMode || !personalDetails?.[member.accountID]?.login) {
Expand Down

0 comments on commit 45585e8

Please sign in to comment.