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 e60a960 commit 8b0d417
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ function WorkspaceWorkflowsApproverPage({policy, policyMembers, personalDetails,
return sectionsArray;
}, [formattedPolicyMembers, formattedApprover, searchTerm, translate]);

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

Check failure on line 147 in src/pages/workspace/workflows/WorkspaceWorkflowsApproverPage.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`
return searchTerm && !sections[0].data.length ? translate('common.noResultsFound') : '';

//eslint-disable-next-line react-hooks/exhaustive-deps

Check failure on line 150 in src/pages/workspace/workflows/WorkspaceWorkflowsApproverPage.tsx

View workflow job for this annotation

GitHub Actions / lint

Expected exception block, space or tab after '//' in comment
[translate, sections],
);
}, [translate, sections]);

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

0 comments on commit 8b0d417

Please sign in to comment.