@provoly/dashboard 0.14.0 → 0.14.2

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.
@@ -2496,8 +2496,8 @@ class PryModalStatusComponent {
2496
2496
  this.store.dispatch(DataSourceActions.dataset.previews.getById({ id: version.id }));
2497
2497
  this.datasetPreviews$ = this.store
2498
2498
  .select(DataSourceSelectors.datasetPreviews)
2499
- .pipe(map((previews) => previews.map((preview) => preview.messages.map((message) => ({ ...message, count: preview.count }))).flat()));
2500
- this.messageCount$ = this.datasetPreviews$.pipe(map((previews) => {
2499
+ .pipe(map((previews) => previews.map((preview) => preview.messages).flat()));
2500
+ this.messageCount$ = this.store.select(DataSourceSelectors.datasetPreviews).pipe(map((previews) => {
2501
2501
  return previews.map((preview) => preview.count).reduce((p, c) => p + c, 0);
2502
2502
  }));
2503
2503
  }
@@ -3906,8 +3906,8 @@ const SearchActions = {
3906
3906
  search: createAction('[Search] search', props()),
3907
3907
  getDatasourceItems: createAction('[Search] (bus) search named', props()),
3908
3908
  // result Search
3909
- searchSuccess: createAction('[Search Api] Search Success', props()),
3910
- searchFailure: createAction('[Search Api] Search Failure', props())
3909
+ searchSuccess: createAction('[Search Api] (bus) Search Success', props()),
3910
+ searchFailure: createAction('[Search Api] (bus) Search Failure', props())
3911
3911
  };
3912
3912
 
3913
3913
  class SearchService {
@@ -10284,7 +10284,7 @@ const internalReducer = createReducer(dashboardInitialState, on(DashboardActions
10284
10284
  }), on(DashboardActions.updateWidgetManifest, (state, action) => {
10285
10285
  const myRank = state.manifests.tenants.indexOf(state.manifests.sender);
10286
10286
  const newWindows = JSON.parse(JSON.stringify(state.manifests.manifest.windows));
10287
- newWindows[myRank].widgets[action.index] = action.manifest;
10287
+ (newWindows[myRank] ?? { widgets: [] }).widgets[action.index] = action.manifest;
10288
10288
  return {
10289
10289
  ...state,
10290
10290
  manifests: {