diff --git a/packages/datalib/src/PerspectiveTreeNode.ts b/packages/datalib/src/PerspectiveTreeNode.ts index 32a8711f8..cd627f9d6 100644 --- a/packages/datalib/src/PerspectiveTreeNode.ts +++ b/packages/datalib/src/PerspectiveTreeNode.ts @@ -146,6 +146,9 @@ export abstract class PerspectiveTreeNode { get preloadedLevelData() { return false; } + get findByDesignerIdWithoutDesignerId() { + return false; + } matchChildRow(parentRow: any, childRow: any): boolean { return true; } @@ -219,7 +222,7 @@ export abstract class PerspectiveTreeNode { get hasUncheckedNodeInPath() { if (!this.parentNode) return false; - if (!this.isCheckedNode) return true; + if (this.designerId && !this.isCheckedNode) return true; return this.parentNode.hasUncheckedNodeInPath; } @@ -413,7 +416,7 @@ export abstract class PerspectiveTreeNode { // } findNodeByDesignerId(designerId: string): PerspectiveTreeNode { - if (!this.designerId) { + if (!this.designerId && !this.findByDesignerIdWithoutDesignerId) { return null; } if (!designerId) { @@ -774,6 +777,10 @@ export class PerspectivePatternColumnNode extends PerspectiveTreeNode { return this.parentNode instanceof PerspectivePatternColumnNode; } + get findByDesignerIdWithoutDesignerId() { + return this.isExpandable; + } + matchChildRow(parentRow: any, childRow: any): boolean { console.log('MATCH PATTENR ROW', parentRow, childRow); return false;