@trudb/tru-common-lib 0.2.519 → 0.2.520

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.
@@ -4838,9 +4838,11 @@ class TruDetailViewBase {
4838
4838
  };
4839
4839
  renderCustomToolbarComponents = () => {
4840
4840
  this.customToolbarComponents.forEach((componentName) => {
4841
- let toolbarContainerRef = this.customToolbarContainer.createComponent(this.componentLookup.get(componentName));
4842
- toolbarContainerRef.instance.tableName = this.tableName;
4843
- toolbarContainerRef.instance.getEntities = () => { return [this.entity]; };
4841
+ if (componentName) {
4842
+ let toolbarContainerRef = this.customToolbarContainer.createComponent(this.componentLookup.get(componentName));
4843
+ toolbarContainerRef.instance.tableName = this.tableName;
4844
+ toolbarContainerRef.instance.getEntities = () => { return [this.entity]; };
4845
+ }
4844
4846
  });
4845
4847
  };
4846
4848
  onAddEntity = (newEntity, dataNotification = false) => {