Skip to content

Commit

Permalink
[improve][xs]: display error msg when there is no data
Browse files Browse the repository at this point in the history
  • Loading branch information
sagargg committed Apr 17, 2023
1 parent 3878875 commit bc17766
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function DataView(props) {
}));
} catch (e) {
return _react.default.createElement("div", {
className: e
});
className: "dv-no-data"
}, "Data not found to render map.");
}
} else if (view.specType === 'document') {
return _react.default.createElement("div", {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@datopian/datapackage-views-js",
"version": "1.4.4",
"version": "1.4.5",
"private": false,
"main": "/dist/App.js",
"module": "/dist/App.js",
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function DataView(props) {
</div>
)
} catch (e) {
return (<div className={e}></div>)
return (<div className='dv-no-data'>Data not found to render map.</div>)
}
} else if (view.specType === 'document') {
return (
Expand Down

0 comments on commit bc17766

Please sign in to comment.