Skip to content

Commit

Permalink
fix for search date facet not working on init load/reload #288
Browse files Browse the repository at this point in the history
  • Loading branch information
UcDust committed Dec 4, 2024
1 parent 3f56993 commit d25590c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d25590c

Please sign in to comment.