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, {