Skip to content

Commit

Permalink
[bugfix] issue creating separators & markup slices (#3041)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Jun 26, 2017
1 parent 8dfe2b7 commit a55f963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/javascripts/explore/stores/controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ export const controls = {
label: 'Code',
description: 'Put your code here',
mapStateToProps: state => ({
language: state.controls ? state.controls.markup_type.value : null,
language: state.controls && state.controls.markup_type ? state.controls.markup_type.value : 'markdown',
}),
default: '',
},
Expand Down

0 comments on commit a55f963

Please sign in to comment.