Skip to content

Commit

Permalink
refactor: match previous mutation pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgetz10 committed Oct 15, 2024
1 parent 31210b7 commit d9ff4a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/core/helpers/ver/4.24.10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ export const removeMultiSelectPropFromMultiselect = newConfig => {
}
}

export const setXAxisLabelOffsetToZero = newConfig =>
editConfigKeys(newConfig, [{ path: ['xAxis', 'labelOffset'], value: 0 }])
export const setXAxisLabelOffsetToZero = newConfig => {
if (!newConfig.xAxis?.labelOffset) return
newConfig.xAxis.labelOffset = 0
}

const update_4_24_10 = config => {
const ver = '4.24.10'
let newConfig = setXAxisLabelOffsetToZero(config)
let newConfig = _.cloneDeep(config)
setXAxisLabelOffsetToZero(newConfig)
removeMultiSelectPropFromMultiselect(newConfig)
newConfig.version = ver
return newConfig
Expand Down

0 comments on commit d9ff4a9

Please sign in to comment.