diff --git a/CHANGELOG.md b/CHANGELOG.md index b84c626e5..8334a9c0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Allow PieWidget labels to be overwritten [#177](https://github.com/CartoDB/carto-react/pull/177) - Fix legit 0 values being excluded from numeric filters [#204](https://github.com/CartoDB/carto-react/pull/204) - Fix histogram widget filter, using closed-open intervals [#205](https://github.com/CartoDB/carto-react/pull/205) +- Adapt executeSQL to the new SQL API v3 response [#207](https://github.com/CartoDB/carto-react/pull/207) - Fix missing connection arg in executeSQL / createRequest for POST requests [#206](https://github.com/CartoDB/carto-react/pull/206) ## 1.1.0-beta.1 (2021-10-14) diff --git a/packages/react-api/src/api/SQL.js b/packages/react-api/src/api/SQL.js index b821b7188..c882384ce 100644 --- a/packages/react-api/src/api/SQL.js +++ b/packages/react-api/src/api/SQL.js @@ -40,7 +40,7 @@ export const executeSQL = async ({ credentials, query, connection, opts }) => { const { apiVersion = API_VERSIONS.V2 } = credentials; if (apiVersion === API_VERSIONS.V3) { - return data; + return data.rows; } return opts && opts.format === 'geojson' ? data : data.rows; // just rows portion of result object