Skip to content

Commit

Permalink
ESlint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Courtney Gosselin <[email protected]>
  • Loading branch information
CourtneyGosselin committed Jan 17, 2024
1 parent 986678e commit a3b2389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/clinicalGenomic/widgets/patientSidebar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { styled, useTheme } from '@mui/system';
import { styled } from '@mui/system';
import { Button, Typography } from '@mui/material';
import FolderOpenIcon from '@mui/icons-material/FolderOpen';
import FolderIcon from '@mui/icons-material/Folder';
Expand Down Expand Up @@ -154,7 +154,7 @@ function PatientSidebar({ sidebar = {}, setColumns, setRows, setTitle }) {
handleHeaderClick(firstHeaderKey, sidebar, null);
}
}
}, [initialHeader, sidebar, handleTableSet]);
}, [initialHeader, sidebar]);

Check warning on line 157 in src/views/clinicalGenomic/widgets/patientSidebar.js

View workflow job for this annotation

GitHub Actions / ESLint

src/views/clinicalGenomic/widgets/patientSidebar.js#L157

React Hook useEffect has a missing dependency: 'handleTableSet'. Either include it or remove the dependency array (react-hooks/exhaustive-deps)

function createSubSidebarHeaders(array = [], depth = 0, hasChildren = false) {
const sidebarTitles = [];
Expand Down

0 comments on commit a3b2389

Please sign in to comment.