Skip to content

Commit

Permalink
ts error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanAndrews300 committed Jan 22, 2025
1 parent 91b7a8e commit 1b3e6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SidePanelControlBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const SearchBarComponent: FC<SidePanelControlBarProps> = ({
const filterCount: number = useMemo(() => {
let count = 0;
for (const property of Object.keys(appFilter)) {
if (property === 'access_process') {
count += appFilter[property].values.length;
if (appFilter[property]?.values && property === 'access_process') {
count += appFilter[property]?.values.length;
} else {
count++;
}
Expand Down

0 comments on commit 1b3e6ea

Please sign in to comment.