Skip to content

Commit

Permalink
* #46. fix tableOpts.buttons detection
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Jun 9, 2017
1 parent 94cd09e commit c441411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ class Tools extends Component {
display
} = this.props;

if(typeof tableOpts !== CommonConstants.UNDEFINED) {
var language = Lang[lang];
let buttons = [];
if (typeof tableOpts.buttons !== CommonConstants.UNDEFINED
&& tableOpts.buttons > 0
&& tableOpts.buttonsPosition.indexOf(display) !== -1) {
tableOpts.buttons.map((btn, i) => {
if (btn[EditorConstants.EXTENDED] === EditorConstants.EDITOR_CREATE) {
Expand Down Expand Up @@ -94,6 +96,7 @@ class Tools extends Component {
}
return buttons;
}
}

render()
{
Expand Down

0 comments on commit c441411

Please sign in to comment.