Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
mac-s-g committed Jun 25, 2017
commit c413d695c506ea3dd2c97354a6c9568d23f12596
11 changes: 0 additions & 11 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,6 @@ export default class extends React.Component {
message: 'src property must be a valid json object'
}
}

//make sure `onEdit` prop is a function when not `false`
if (this.state.onEdit !== false
&& toType(this.state.onEdit) !== 'function'
) {
this.state.onEdit = ()=>{};
console.error(
'react-json-view error:',
'onEdit property must be a function when enabled'
);
}
}

render() {
Expand Down