Guard against colors being passed in as an empty array
parent
0146322629
commit
a65b482419
|
@ -200,7 +200,7 @@ export const LINE_COLOR_SCALES = [
|
|||
})
|
||||
|
||||
export const validateLineColors = colors => {
|
||||
if (!colors) {
|
||||
if (!colors || colors.length === 0) {
|
||||
return DEFAULT_LINE_COLORS
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue