Commits

Giuseppe Digilio authored f8afc6355b5
[CSTPER-138] Fixed issue that blocked route change within the import-external page
No tags

src/app/submission/import-external/submission-import-external.component.ts

Modified
100 100 this.importConfig = {
101 101 buttonLabel: 'submission.sections.describe.relationship-lookup.external-source.import-button-title.' + this.label
102 102 };
103 103 this.entriesRD$ = new BehaviorSubject(createSuccessfulRemoteDataObject(new PaginatedList(new PageInfo(), [])));
104 104 this.isLoading$ = new BehaviorSubject(false);
105 105 combineLatest(
106 106 [
107 107 this.routeService.getQueryParameterValue('source'),
108 108 this.routeService.getQueryParameterValue('query')
109 109 ]).pipe(
110 + take(1),
110 111 filter(([source, query]) => source && query && source !== '' && query !== ''),
111 112 filter(([source, query]) => source !== this.routeData.sourceId || query !== this.routeData.query),
112 113 switchMap(([source, query]) => {
113 114 this.routeData.sourceId = source;
114 115 this.routeData.query = query;
115 116 this.isLoading$.next(true);
116 117 return this.searchConfigService.paginatedSearchOptions.pipe(
117 118 switchMap((searchOptions: PaginatedSearchOptions) => {
118 119 return this.externalService.getExternalSourceEntries(this.routeData.sourceId, searchOptions);
119 120 }),

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut