Fix stl download name (#593)

Was broken on the profile page, would set the name to undefined.stl
This commit was merged in pull request #593.
This commit is contained in:
Kurt Hutten
2022-01-18 06:16:55 +11:00
committed by GitHub
parent 90fece9598
commit c48afaf07b
3 changed files with 1 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ export const Success = ({ userProject, refetch }) => {
ideType: state.ideType,
geometry: state.objectData?.data,
quality: state.objectData?.quality,
fileName: `${userProject.title }.stl`,
fileName: `${userProject.Project.title }.stl`,
thunkDispatch,
})

View File

@@ -53,7 +53,6 @@ const ProjectProfile = ({
})
)
}, [currentUser, project?.title, userProject.userName])
console.log('from ProjectProfile', { cadPackage: project.cadPackage, code: project.code })
useIdeInit(project?.cadPackage, project?.code, 'viewer')
const [newDescription, setNewDescription] = useState(project?.description)
const onDescriptionChange = (description) => setNewDescription(description())

View File

@@ -404,7 +404,6 @@ const makeScriptWorker = ({ callback, convertToSolids }) => {
}
})
}
console.log('paramsDef', paramsDef)
lastParamsDef = paramsDef
callback({
action: 'parameterDefinitions',