Skip to content

Commit

Permalink
Adapt executeSQL to the new SQL API v3 response (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamador authored Oct 21, 2021
1 parent 448a821 commit 98e9b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/react-api/src/api/SQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98e9b56

Please sign in to comment.