diff --git a/src/store/printer/getters.ts b/src/store/printer/getters.ts index ba0204e27..ce9b15fa9 100644 --- a/src/store/printer/getters.ts +++ b/src/store/printer/getters.ts @@ -228,7 +228,13 @@ 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) { + if (typeof object.settings.color_order === 'string') { + colorOrder = object.settings.color_order + } else if (Array.isArray(object.settings.color_order) && object.settings.color_order.length > 0) { + colorOrder = object.settings.color_order[0] + } + } if (object.type === 'led') { colorOrder = ''