Skip to content

Commit

Permalink
TableWidget: support for object values (#867) (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
padawannn committed Apr 22, 2024
1 parent c5b849a commit 988d805
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

## 2.5

### 2.5.5 (2024-04-22)
- TableWidget: support for object values [#867](https://github.com/CartoDB/carto-react/pull/867)

### 2.5.4 (2024-04-22)

- TimeSeriesWidget: fix echarts props update, to keep state of control when clicking [#865](https://github.com/CartoDB/carto-react/pull/865)
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages/*"
],
"npmClient": "yarn",
"version": "2.5.4"
"version": "2.5.5"
}
2 changes: 1 addition & 1 deletion packages/react-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-api",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Api",
"author": "CARTO Dev Team",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-auth",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Auth",
"author": "CARTO Dev Team",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-basemaps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-basemaps",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Basemaps",
"keywords": [
"carto",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-core",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Core",
"author": "CARTO Dev Team",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-redux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-redux",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Redux",
"author": "CARTO Dev Team",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-ui",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - UI",
"author": "CARTO Dev Team",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions packages/react-ui/src/widgets/TableWidgetUI/TableWidgetUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ function TableBodyComponent({ columns, rows, onRowClick }) {
cellValue = `[${cellValue
.map((c) => (typeof c === 'string' ? `"${c}"` : c))
.join(', ')}]`;
} else if (typeof cellValue === 'object' && cellValue !== null) {
cellValue = JSON.stringify(cellValue);
}
return (
(headerName || field) && (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-widgets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-widgets",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Widgets",
"author": "CARTO Dev Team",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carto/react-workers",
"version": "2.5.4",
"version": "2.5.5",
"description": "CARTO for React - Workers",
"author": "CARTO Dev Team",
"keywords": [
Expand Down Expand Up @@ -66,7 +66,7 @@
},
"dependencies": {
"@babel/runtime": "^7.13.9",
"@carto/react-core": "^2.5.4",
"@carto/react-core": "^2.5.5",
"@turf/bbox-polygon": "^6.3.0",
"@turf/boolean-intersects": "^6.3.0",
"@turf/boolean-within": "^6.3.0",
Expand Down

0 comments on commit 988d805

Please sign in to comment.