When the clear button hit api for full response.

This commit is contained in:
Kartik Sharma 2025-09-12 17:16:34 +05:30
parent 7e5b6952f5
commit 9676d45710
2 changed files with 5 additions and 3 deletions

View File

@ -31,6 +31,7 @@ const ContactFilterPanel = ({ onApply, clearFilter }) => {
const handleClose = () => { const handleClose = () => {
reset(defaultContactFilter); reset(defaultContactFilter);
onApply(defaultContactFilter);
closePanel(); closePanel();
}; };
@ -59,7 +60,7 @@ const ContactFilterPanel = ({ onApply, clearFilter }) => {
<div className="d-flex justify-content-end py-3 gap-2"> <div className="d-flex justify-content-end py-3 gap-2">
<button <button
type="button" type="button"
className="btn btn-secondary btn-xs" className="btn btn-label-secondary btn-xs"
onClick={handleClose} onClick={handleClose}
> >
Clear Clear

View File

@ -31,6 +31,7 @@ const NoteFilterPanel = ({ onApply, clearFilter }) => {
const handleClose = () => { const handleClose = () => {
reset(defaultNotesFilter); reset(defaultNotesFilter);
onApply(defaultNotesFilter);
closePanel(); closePanel();
}; };
@ -59,7 +60,7 @@ const NoteFilterPanel = ({ onApply, clearFilter }) => {
<div className="d-flex justify-content-end py-3 gap-2"> <div className="d-flex justify-content-end py-3 gap-2">
<button <button
type="button" type="button"
className="btn btn-secondary btn-xs" className="btn btn-label-secondary btn-xs"
onClick={handleClose} onClick={handleClose}
> >
Clear Clear