We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1633c47 commit 8d2e3dcCopy full SHA for 8d2e3dc
src/store/gcodePreview/getters.ts
@@ -187,11 +187,15 @@ export const getters = {
187
},
188
189
getToolColors: (state, getters): Record<Tool, string> => {
190
- const colorsFromFileMetadata: string[] = getters.getFileFilamentColors
191
-
192
- const toolIndexes = state.tools.length === 0
193
- ? [0]
194
- : state.tools
+ const [toolIndexes, colorsFromFileMetadata]: [number[], string[]] = state.tools.length === 0
+ ? [
+ [0],
+ []
+ ]
195
+ : [
196
+ state.tools,
197
+ getters.getFileFilamentColors
198
199
200
const defaultColors: string[] = getters.getDefaultColors
201
0 commit comments