From d25590c84f73b06a5f4da175d5dcc8505755df1d Mon Sep 17 00:00:00 2001 From: UcDust Date: Wed, 4 Dec 2024 14:14:07 -0800 Subject: [PATCH] fix for search date facet not working on init load/reload #288 --- .../elements/pages/search/filtering/app-range-filter.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/fin/ucd-lib-client/client/public/elements/pages/search/filtering/app-range-filter.js b/services/fin/ucd-lib-client/client/public/elements/pages/search/filtering/app-range-filter.js index b3d9423d..dbf36304 100644 --- a/services/fin/ucd-lib-client/client/public/elements/pages/search/filtering/app-range-filter.js +++ b/services/fin/ucd-lib-client/client/public/elements/pages/search/filtering/app-range-filter.js @@ -40,7 +40,14 @@ export default class AppRangeFilter extends Mixin(LitElement).with( // super.connectedCallback(); // } - firstUpdated() { + async firstUpdated() { + if( this.AppStateModel.location.page !== 'search' ) return; + + let searchDoc = this.RecordModel.getCurrentSearchDocument(); + if( searchDoc ) { + this._onRecordSearchUpdate(await this.RecordModel.search(searchDoc)); + } + this.resize(); }