From 9877cafaf42dd4b6dd4443237574dedfeaa2add4 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 5 Dec 2024 15:48:18 +0000 Subject: [PATCH] Update relationship endpoints --- packages/frontend-core/src/api/relationships.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/api/relationships.ts b/packages/frontend-core/src/api/relationships.ts index 4579557a0a..3d5f1a006d 100644 --- a/packages/frontend-core/src/api/relationships.ts +++ b/packages/frontend-core/src/api/relationships.ts @@ -1,4 +1,4 @@ -import { Row } from "@budibase/types" +import { FetchEnrichedRowResponse, Row } from "@budibase/types" import { BaseAPIClient } from "./types" export interface RelationshipEndpoints { @@ -19,7 +19,7 @@ export const buildRelationshipEndpoints = ( * @param fieldName the name of the relationship field */ fetchRelationshipData: async (sourceId, rowId, fieldName) => { - const response = await API.get({ + const response = await API.get({ url: `/api/${sourceId}/${rowId}/enrich?field=${fieldName}`, }) if (!fieldName) {