Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
#644 Exception handling for buttons without value
Browse files Browse the repository at this point in the history
  • Loading branch information
damianprzygodzki committed Apr 18, 2017
1 parent 4d36b53 commit b3443dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/widget/RawWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ class RawWidget extends Component {
tabIndex={fullScreen ? -1 : tabIndex}
ref={c => this.rawWidget = c}
>
{widgetData[0]
{widgetData[0].value &&
widgetData[0]
.value[Object.keys(widgetData[0].value)[0]]
}
</button>
Expand Down Expand Up @@ -645,7 +646,7 @@ class RawWidget extends Component {
caption, fields, type, noLabel, widgetData, rowId, isModal,
handlePatch, widgetType
} = this.props;

const {errorPopup} = this.state;
const widgetBody = this.renderWidget();
const {validStatus} = widgetData[0];
Expand Down

0 comments on commit b3443dc

Please sign in to comment.