@provoly/dashboard 0.21.8 → 0.21.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3957,13 +3957,18 @@ class ProxyUtils {
3957
3957
  metadata: item.metadata,
3958
3958
  attributes: new Proxy(JSON.parse(JSON.stringify(item.attributes)), {
3959
3959
  get: (original, prop, proxy) => {
3960
- if (original[prop]) {
3961
- return original[prop];
3960
+ if (prop === 'toJSON') {
3961
+ return () => original;
3962
3962
  }
3963
3963
  else {
3964
- if (!this.currentlyLoading.includes(rsId) && this.requested[prop] !== false) {
3965
- this.requested[prop] = false;
3966
- this.store.dispatch(SearchActions.getDatasourceItems({ id: rsId, excludeGeo: false, from: 'ProxyUtils.Item()' }));
3964
+ if (original[prop]) {
3965
+ return original[prop];
3966
+ }
3967
+ else {
3968
+ if (!this.currentlyLoading.includes(rsId) && this.requested[prop] !== false) {
3969
+ this.requested[prop] = false;
3970
+ this.store.dispatch(SearchActions.getDatasourceItems({ id: rsId, excludeGeo: false, from: 'ProxyUtils.Item()' }));
3971
+ }
3967
3972
  }
3968
3973
  }
3969
3974
  return {
@@ -4240,8 +4245,8 @@ class SearchService {
4240
4245
  if (quickOrder[DEFAULT_NAMED_QUERY_ID]) {
4241
4246
  params['order'] = `${quickOrder[DEFAULT_NAMED_QUERY_ID]?.attribute},${quickOrder[DEFAULT_NAMED_QUERY_ID]?.asc ?? ''}`;
4242
4247
  }
4243
- condition.limit = limits[DEFAULT_NAMED_QUERY_ID] ?? limits['default'];
4244
- return this.httpClient.post(encodeURI(`${url}/items/search`), condition, { params });
4248
+ const _condition = { ...condition, limit: limits[DEFAULT_NAMED_QUERY_ID] ?? limits['default'] };
4249
+ return this.httpClient.post(encodeURI(`${url}/items/search`), _condition, { params });
4245
4250
  }), map((rs) => this.applyTransformations(DEFAULT_NAMED_QUERY_ID, rs)));
4246
4251
  }
4247
4252
  /**
@@ -10761,7 +10766,8 @@ class DashboardEffects {
10761
10766
  SearchActions.getDatasourceItems({
10762
10767
  // @ts-ignore
10763
10768
  id: action.id,
10764
- excludeGeo: true,
10769
+ // @ts-ignore
10770
+ excludeGeo: action.excludeGeo != undefined ? action.excludeGeo : true,
10765
10771
  from: 'DashboardEffects.assertResultSets$-2'
10766
10772
  })
10767
10773
  ];