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