Fix cell editor save for table colors

pull/2993/head
Alex P 2018-03-14 21:29:53 -07:00
parent 8078362856
commit 7c692e2f23
1 changed files with 19 additions and 7 deletions

View File

@ -120,13 +120,25 @@ class CellEditorOverlay extends Component {
})
let colors = []
if (cell.type === 'gauge') {
colors = stringifyColorValues(gaugeColors)
} else if (
cell.type === 'single-stat' ||
cell.type === 'line-plus-single-stat'
) {
colors = stringifyColorValues(singleStatColors)
switch (cell.type) {
case 'gauge': {
colors = stringifyColorValues(gaugeColors)
break
}
case 'single-stat': {
colors = stringifyColorValues(singleStatColors)
break
}
case 'line-plus-single-stat': {
colors = stringifyColorValues(singleStatColors)
break
}
case 'table': {
debugger
colors = stringifyColorValues(singleStatColors)
break
}
}
this.props.onSave({