Skip to content

Commit

Permalink
118083: if component's query is not up-to-date with the one passed, r…
Browse files Browse the repository at this point in the history
…eplace it
  • Loading branch information
Jens Vannerum committed Sep 4, 2024
1 parent 5062e46 commit a33cd66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class DsDynamicLookupRelationExternalSourceTabComponent implements OnInit
this.resetRoute();
this.entriesRD$ = this.searchConfigService.paginatedSearchOptions.pipe(
switchMap((searchOptions: PaginatedSearchOptions) => {
if (searchOptions.query === '') {
if (searchOptions.query === '' || (this.query && searchOptions.query !== this.query)) {
searchOptions.query = this.query;
}
return this.externalSourceService.getExternalSourceEntries(this.externalSource.id, searchOptions).pipe(startWith(undefined));
Expand Down

0 comments on commit a33cd66

Please sign in to comment.