Skip to content

Commit

Permalink
- Quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
FranckyC committed Nov 14, 2024
1 parent c7bc523 commit e6eef0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,14 @@ export class SearchInputComponent extends BaseComponent {
}
}

public override connectedCallback(): Promise<void> {

protected override loadState(): Promise<void> {
this.handleQueryStringChange();
this.initializeDefaultValue();

return super.loadState();
}

public override connectedCallback(): Promise<void> {

return super.connectedCallback();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,6 @@ export class SearchResultsComponent extends BaseComponent {
// Set default sort properties according to configuration
this.initSortProperties();

// Build the search query
this.buildSearchQuery();

// Set tokens
this.tokenService.setTokenValue(BuiltinTokenNames.searchTerms, this.getDefaultQueryText());

Expand Down Expand Up @@ -913,6 +910,9 @@ export class SearchResultsComponent extends BaseComponent {
*/
public override async loadState(): Promise<void> {

// Build the search query
this.buildSearchQuery();

if (this.shouldRender && this.getDefaultQueryText()) {
await this._search(this.searchQuery);
} else {
Expand Down

0 comments on commit e6eef0d

Please sign in to comment.