Skip to content
Snippets Groups Projects
Commit 9d413bf0 authored by David Sehnal's avatar David Sehnal
Browse files

mol-util: palette fix missing valueLabel function

parent 8fde5dd1
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ export function getPalette(count: number, props: PaletteProps) {
count = Math.min(count, props.palette.params.maxCount)
colors = distinctColors(count, props.palette.params)
}
const { valueLabel } = props.palette.params
const valueLabel = props.palette.params.valueLabel || (i => '' + i);
const colorsLength = colors.length
const table: [string, Color][] = []
for (let i = 0; i < count; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment