Fix pre-render fail

This commit is contained in:
Kurt Hutten
2021-09-08 17:44:31 +10:00
parent 9ae1cd4aff
commit 3e26e3d420
7 changed files with 16 additions and 17 deletions

View File

@@ -13,10 +13,9 @@ function withThunk(dispatch, getState) {
? actionOrThunk(dispatch, getState)
: dispatch(actionOrThunk)
}
import { CadPackageType } from 'src/components/CadPackage/CadPackage'
export type CadPackage = 'openscad' | 'cadquery' | 'jscad'
const initCodeMap: { [key in CadPackage]: string } = {
const initCodeMap: { [key in CadPackageType]: string } = {
openscad: `// involute donut
// ^ first comment is used for download title (i.e "involute-donut.stl")
@@ -97,7 +96,7 @@ interface XYZ {
}
export interface State {
ideType: 'INIT' | CadPackage
ideType: 'INIT' | CadPackageType
consoleMessages: { type: 'message' | 'error'; message: string; time: Date }[]
code: string
objectData: {