diff --git a/packages/client/src/components/Modals/SearchPanel.vue b/packages/client/src/components/Modals/SearchPanel.vue index dc5a6dbd7..a4986d638 100644 --- a/packages/client/src/components/Modals/SearchPanel.vue +++ b/packages/client/src/components/Modals/SearchPanel.vue @@ -246,7 +246,7 @@ export default { async saveSearch() { this.apply(); let searchId; - if (this.formData.searchId !== undefined && this.formData.searchId !== null) { + if (this.isEditMode) { this.updateSavedSearch({ searchId: this.formData.searchId, searchInfo: { @@ -255,6 +255,7 @@ export default { }, }); searchId = this.formData.searchId; + this.$emit('filters-applied'); } else { const res = await this.createSavedSearch({ searchInfo: { diff --git a/packages/client/src/components/SearchFilter.vue b/packages/client/src/components/SearchFilter.vue index c504d2e2c..6e04b02d5 100644 --- a/packages/client/src/components/SearchFilter.vue +++ b/packages/client/src/components/SearchFilter.vue @@ -4,7 +4,7 @@

{{ selectedSearch === null ? "All Grants" : searchName }}

- Edit | Clear + Edit | Clear