From 1efc3cfd981eaf6daae4e8addbe85086e1b5ea56 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 26 Mar 2020 14:31:56 +0000 Subject: [PATCH] bugfix: child views not loading --- packages/builder/src/common/core.js | 2 +- .../builder/src/database/ModelDataTable/ModelDataTable.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/common/core.js b/packages/builder/src/common/core.js index e996fbe229..78be9aaa4b 100644 --- a/packages/builder/src/common/core.js +++ b/packages/builder/src/common/core.js @@ -13,7 +13,7 @@ export { canDeleteIndex } from "../../../core/src/templateApi/canDeleteIndex" export { canDeleteRecord } from "../../../core/src/templateApi/canDeleteRecord" export { userWithFullAccess } from "../../../core/src/index" export { joinKey } from "../../../core/src/common" - +export { getExactNodeForKey } from "../../../core/src/templateApi/hierarchy" export const pipe = common.$ export const events = common.eventsList diff --git a/packages/builder/src/database/ModelDataTable/ModelDataTable.svelte b/packages/builder/src/database/ModelDataTable/ModelDataTable.svelte index 644078a0d2..845b8414f0 100644 --- a/packages/builder/src/database/ModelDataTable/ModelDataTable.svelte +++ b/packages/builder/src/database/ModelDataTable/ModelDataTable.svelte @@ -77,7 +77,7 @@ if (!view.name) return const viewName = $backendUiStore.selectedRecord - ? `${$backendUiStore.selectedRecord.type}/${$backendUiStore.selectedRecord.id}/${view.name}` + ? `${$backendUiStore.selectedRecord.key}/${view.name}` : view.name return await api.fetchDataForView(viewName, {