diff --git a/ui/src/dashboards/components/CellEditorOverlay.js b/ui/src/dashboards/components/CellEditorOverlay.js index 20ea2daf6..c2e30bf3f 100644 --- a/ui/src/dashboards/components/CellEditorOverlay.js +++ b/ui/src/dashboards/components/CellEditorOverlay.js @@ -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({