@trudb/tru-common-lib 0.2.519 → 0.2.522

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) => {
@@ -4858,7 +4860,6 @@ class TruDetailViewBase {
4858
4860
  }
4859
4861
  else {
4860
4862
  this.entities.push(newEntity);
4861
- this.setEntityDisplayValues(this.tableName, newEntity);
4862
4863
  }
4863
4864
  };
4864
4865
  onCloneEntity = () => {