@smartbit4all/ng-client 3.3.94 → 3.3.95

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.
@@ -12024,10 +12024,12 @@ class SmarttreeGenericService extends SmarttreeService {
12024
12024
  await this.initialize();
12025
12025
  }
12026
12026
  async syncTree() {
12027
- await this.cacheActionDesciptors(this.getAllNodes(this.treeFromBackend));
12028
- if (!this.treeFromBackend) {
12029
- throw new Error('There is no treeFromBackend available!');
12027
+ if (this.treeFromBackend === null || this.treeFromBackend === undefined) {
12028
+ //throw new Error('There is no treeFromBackend available!');
12029
+ console.warn('There is no treeFromBackend available in syncTree!');
12030
+ return;
12030
12031
  }
12032
+ await this.cacheActionDesciptors(this.getAllNodes(this.treeFromBackend));
12031
12033
  if (!this.smartTreeModel) {
12032
12034
  this.smartTreeModel = {
12033
12035
  rootNodes: [],