Skip to content

Commit cadc39d

Browse files
committed
Fix - VueUiCirclePack - Fix default palette reference
1 parent e2ba0cf commit cadc39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/vue-ui-circle-pack.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function packCircles(dp, width, height, maxRadius, offsetX = 0, offsetY = 0) {
242242
243243
const formattedDataset = computed(() => {
244244
return props.dataset.map((ds, i) => {
245-
const color = convertColorToHex(ds.color) || customPalette.value[i] || themePalettes[FINAL_CONFIG.value.theme || 'default'][i % themePalettes[FINAL_CONFIG.value.theme].length] || palette[i] || palette[i % palette.length];
245+
const color = convertColorToHex(ds.color) || customPalette.value[i] || themePalettes[FINAL_CONFIG.value.theme || 'default'][i % themePalettes[FINAL_CONFIG.value.theme || 'default'].length] || palette[i] || palette[i % palette.length];
246246
return {
247247
...ds,
248248
id: createUid(),

0 commit comments

Comments
 (0)