@smartbit4all/ng-client 3.3.194 → 3.3.196

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.
@@ -5213,8 +5213,12 @@ class UiActionToolbarComponent {
5213
5213
  if (this.uiActionModels) {
5214
5214
  let uiActionModelsWithDescriptions = [];
5215
5215
  for (const uiActionModel of this.uiActionModels) {
5216
- uiActionModel.descriptor = await this.manager.getActionDescriptor(uiActionModel.uiAction);
5217
- uiActionModelsWithDescriptions.push(uiActionModel);
5216
+ const uiAction = uiActionModel.uiAction;
5217
+ // using equality is a must here, undefined and null should be equal
5218
+ if (this.id == uiAction.toolbar) {
5219
+ uiActionModel.descriptor = await this.manager.getActionDescriptor(uiActionModel.uiAction);
5220
+ uiActionModelsWithDescriptions.push(uiActionModel);
5221
+ }
5218
5222
  }
5219
5223
  this.uiActionModelsWithDescriptions = uiActionModelsWithDescriptions;
5220
5224
  this.changeDetector.markForCheck();