Skip to content

Commit

Permalink
fix default filter state
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed Jan 6, 2025
1 parent 820109a commit e9ec848
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const TableColumnManagement: React.FunctionComponent = () => {
const defaultRows = rows;

const [filters, setFilters] = React.useState<string[]>([]);
const [filteredColumns, setFilteredColumns] = React.useState<string[]>([]);
const [filteredRows, setFilteredRows] = React.useState<SampleDataRow[]>([]);
const [filteredColumns, setFilteredColumns] = React.useState<string[]>(defaultColumns);
const [filteredRows, setFilteredRows] = React.useState<SampleDataRow[]>(defaultRows);
const [managedColumns, setManagedColumns] = React.useState<string[]>(defaultColumns);
const [managedRows, setManagedRows] = React.useState<SampleDataRow[]>(defaultRows);
const [isModalOpen, setIsModalOpen] = React.useState(false);
Expand Down

0 comments on commit e9ec848

Please sign in to comment.