@smartbit4all/ng-client 3.3.172 → 3.3.173

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.
@@ -15444,17 +15444,24 @@ class SmartComponentApiClient {
15444
15444
  actionModel.push(action);
15445
15445
  });
15446
15446
  this.uiActionModels = globalUiActionModels;
15447
- Promise.all(toolbars.map((toolbar) => {
15447
+ toolbars.forEach(async (toolbar) => {
15448
15448
  toolbar.uiActionModels = toolbarModels.get(toolbar.id);
15449
- return toolbar.setUp();
15450
- }))
15451
- .then(() => {
15452
- // continue code here if needed
15453
- this.changeDetector?.detectChanges();
15454
- })
15455
- .catch((error) => {
15456
- console.error('An error occurred during toolbar setup:', error);
15449
+ await toolbar.setUp();
15457
15450
  });
15451
+ this.changeDetector?.detectChanges();
15452
+ // Promise.all(
15453
+ // toolbars.map((toolbar) => {
15454
+ // toolbar.uiActionModels = toolbarModels.get(toolbar.id!);
15455
+ // return toolbar.setUp();
15456
+ // })
15457
+ // )
15458
+ // .then(() => {
15459
+ // // continue code here if needed
15460
+ // this.changeDetector?.detectChanges();
15461
+ // })
15462
+ // .catch((error) => {
15463
+ // console.error('An error occurred during toolbar setup:', error);
15464
+ // });
15458
15465
  }
15459
15466
  }
15460
15467
  run() {