[bugfix] issue creating separators & markup slices (#3041)

This commit is contained in:
Maxime Beauchemin 2017-06-26 11:00:21 -07:00 committed by GitHub
parent 8dfe2b70b2
commit a55f963e52
1 changed files with 1 additions and 1 deletions

View File

@ -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: '',
},