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:
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -404,7 +404,6 @@ const makeScriptWorker = ({ callback, convertToSolids }) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
console.log('paramsDef', paramsDef)
|
||||
lastParamsDef = paramsDef
|
||||
callback({
|
||||
action: 'parameterDefinitions',
|
||||
|
||||
Reference in New Issue
Block a user