diff --git a/src/components/common/VnColor.vue b/src/components/common/VnColor.vue index 614a6cd26..dccbc7102 100644 --- a/src/components/common/VnColor.vue +++ b/src/components/common/VnColor.vue @@ -10,7 +10,7 @@ const $props = defineProps({ const colorArray = computed(() => JSON.parse($props.colors)?.value); const maxHeight = 30; -const colorHeight = maxHeight / colorArray?.length; +const colorHeight = maxHeight / colorArray.value?.length;