diff --git a/packages/frontend-core/src/components/grid/stores/viewV2.js b/packages/frontend-core/src/components/grid/stores/viewV2.js index 5bf27b5b56..b24bf56c98 100644 --- a/packages/frontend-core/src/components/grid/stores/viewV2.js +++ b/packages/frontend-core/src/components/grid/stores/viewV2.js @@ -43,19 +43,8 @@ export const createActions = context => { }) } - // TODO: update in future. We can't depend on having table read access. - const getRow = async id => { - const res = await API.searchTable({ - tableId: get(datasource).tableId, - limit: 1, - query: { - equal: { - _id: id, - }, - }, - paginate: false, - }) - return res?.rows?.[0] + const getRow = () => { + throw "Views don't support fetching individual rows" } const isDatasourceValid = datasource => {