From d0232188a1aac2ec143df4aa188c64b571457eae Mon Sep 17 00:00:00 2001 From: Futa Ikeda Date: Wed, 16 Aug 2023 12:00:50 -0400 Subject: [PATCH] Reset active-filters on object-type change --- lib/osf-components/addon/components/search-page/component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/osf-components/addon/components/search-page/component.ts b/lib/osf-components/addon/components/search-page/component.ts index ee19f873f6..3db892c392 100644 --- a/lib/osf-components/addon/components/search-page/component.ts +++ b/lib/osf-components/addon/components/search-page/component.ts @@ -269,6 +269,7 @@ export default class SearchPage extends Component { @action updateResourceType(resourceTypeOption: ResourceTypeOption) { this.resourceType = resourceTypeOption.value; + this.activeFilters = A([]); this.page = ''; taskFor(this.search).perform(); }