fix: sort of toolchange macros (#867)
This commit is contained in:
parent
1ed67b41ab
commit
3d3f29223b
@ -890,7 +890,12 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
})
|
||||
)
|
||||
|
||||
return tools
|
||||
return tools.sort((a, b) => {
|
||||
const numberA = parseInt(a.name.slice(1))
|
||||
const numberB = parseInt(b.name.slice(1))
|
||||
|
||||
return numberA - numberB
|
||||
})
|
||||
},
|
||||
|
||||
getKinematics: (state) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user