From 61f82be9f32a1dca96bd7d862bac67de40e7b04f Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 1 Sep 2022 15:53:44 +0200 Subject: [PATCH] fix --- packages/datalib/src/PerspectiveTreeNode.ts | 2 ++ packages/web/src/perspectives/PerspectiveTable.svelte | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/datalib/src/PerspectiveTreeNode.ts b/packages/datalib/src/PerspectiveTreeNode.ts index 63698450..e94951d8 100644 --- a/packages/datalib/src/PerspectiveTreeNode.ts +++ b/packages/datalib/src/PerspectiveTreeNode.ts @@ -236,6 +236,8 @@ export abstract class PerspectiveTreeNode { const nodeConfig: PerspectiveNodeConfig = { ...createPerspectiveNodeConfig(this.namedObject), isAutoGenerated: true, + conid: this.parentNodeConfig?.conid, + database: this.parentNodeConfig?.database, }; const refConfig: PerspectiveReferenceConfig = { designerId: uuidv1(), diff --git a/packages/web/src/perspectives/PerspectiveTable.svelte b/packages/web/src/perspectives/PerspectiveTable.svelte index 3c321ce3..62ac828d 100644 --- a/packages/web/src/perspectives/PerspectiveTable.svelte +++ b/packages/web/src/perspectives/PerspectiveTable.svelte @@ -372,6 +372,7 @@ if (!display) return; await tick(); if (!domTable) return; + if (!display) return; if (disableLoadNextRef.get()) return; const rowIndex = getLastVisibleRowIndex();