Skip to content

Commit

Permalink
Remove unused useState var
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Oct 24, 2024
1 parent aa3cb93 commit 7525d3d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,6 @@ export default function ThreatsDataView( {
*/
const getItemId = useCallback( ( item: DataViewThreat ) => item.id.toString(), [] );

/**
* Callback function to update the selection state.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-dataviews/#onchangeselection-function
*/
// const [ statusFilter, setStatusFilter ] = useState< string >( 'Active' );

/**
* Callback function to handle the status change filter.
*
Expand Down Expand Up @@ -593,7 +586,6 @@ export default function ThreatsDataView( {
...view,
filters: updatedFilters,
} );
// setStatusFilter( newStatus );
},
[ view ]
);
Expand Down

0 comments on commit 7525d3d

Please sign in to comment.