Skip to content

Commit

Permalink
fix: fix color picker for PCA9632
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Oct 15, 2024
1 parent 6a193da commit bb70dbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/printer/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ export const getters: GetterTree<PrinterState, RootState> = {
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 = ''
Expand Down

0 comments on commit bb70dbb

Please sign in to comment.