From bb70dbb21c318249ac0c7340e052be74fe3643e7 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 15 Oct 2024 21:06:27 +0200 Subject: [PATCH] fix: fix color picker for PCA9632 Signed-off-by: Stefan Dej --- src/store/printer/getters.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/printer/getters.ts b/src/store/printer/getters.ts index ba0204e27..85edbff36 100644 --- a/src/store/printer/getters.ts +++ b/src/store/printer/getters.ts @@ -228,7 +228,8 @@ export const getters: GetterTree = { let singleChannelTarget = null const colorData = object.state.color_data ?? [] - if ('color_order' in object.settings) colorOrder = object.settings.color_order[0] ?? '' + if ('color_order' in object.settings) + colorOrder = object.settings.color_order[0] ?? object.settings.color_order if (object.type === 'led') { colorOrder = ''