fix: sort of toolchange macros (#867)

This commit is contained in:
Stefan Dej 2022-06-06 20:38:31 +02:00 committed by GitHub
parent 1ed67b41ab
commit 3d3f29223b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {