Fix fetchRow not working in internal API

This commit is contained in:
Andrew Kingston 2022-09-30 10:13:26 +01:00
parent 980715d15e
commit 9a43f865c9
1 changed files with 1 additions and 2 deletions

View File

@ -8,10 +8,9 @@ export const buildRowEndpoints = API => ({
if (!tableId || !rowId) { if (!tableId || !rowId) {
return null return null
} }
const row = await API.get({ return await API.get({
url: `/api/${tableId}/rows/${rowId}`, url: `/api/${tableId}/rows/${rowId}`,
}) })
return (await API.enrichRows([row], tableId))[0]
}, },
/** /**