Skip to content

Commit

Permalink
clear search query on close dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 10, 2025
1 parent ee8cceb commit dc07d6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/tenant/standards/template.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ const Page = () => {
}, {});

const handleOpenDialog = () => setDialogOpen(true);
const handleCloseDialog = () => setDialogOpen(false);
const handleCloseDialog = () => {
setDialogOpen(false);
setSearchQuery("");
};

const filterStandards = (standardsList) =>
standardsList.filter(
Expand Down

0 comments on commit dc07d6d

Please sign in to comment.