Skip to content

Commit

Permalink
[Hotfix] access slice_id when slice exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Feb 25, 2017
1 parent 3de2698 commit 64bbdc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SaveModal extends React.Component {

let sliceName = null;
sliceParams.action = this.state.action;
if (this.props.slice.slice_id) {
if (this.props.slice && this.props.slice.slice_id) {
sliceParams.slice_id = this.props.slice.slice_id;
}
if (sliceParams.action === 'saveas') {
Expand Down

0 comments on commit 64bbdc5

Please sign in to comment.