Skip to content

Commit

Permalink
Merge branch 'main' into feature/dev-2522-dsp-app-expert-search-sugge…
Browse files Browse the repository at this point in the history
…sted-query-returns-no-results
  • Loading branch information
domsteinbach authored Oct 30, 2023
2 parents 6f7ca74 + e5cfebe commit 2d7e88c
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,9 @@ export class AdvancedSearchStoreService extends ComponentStore<AdvancedSearchSta
);

private _isOrderByItemDisabled(data: PropertyData | undefined): boolean {
if (!data) return true;
if (data.objectType === Constants.UriValue) return true;
if (!data) {
return true;
}
return !(
data.objectType === ResourceLabel ||
data.objectType?.includes(Constants.KnoraApiV2)
Expand All @@ -1142,7 +1143,9 @@ export class AdvancedSearchStoreService extends ComponentStore<AdvancedSearchSta
const propertiesOrderByList = this.get(
(state) => state.propertiesOrderByList
);
const filteredProperties = this.get((state) => state.filteredProperties);
const filteredProperties = this.get(
(state) => state.filteredProperties
);

const snapshot: AdvancedSearchStateSnapshot = {
ontologies,
Expand All @@ -1156,6 +1159,9 @@ export class AdvancedSearchStoreService extends ComponentStore<AdvancedSearchSta
filteredProperties,
};

localStorage.setItem('advanced-search-previous-search', JSON.stringify(snapshot));
localStorage.setItem(
'advanced-search-previous-search',
JSON.stringify(snapshot)
);
}
}

0 comments on commit 2d7e88c

Please sign in to comment.