Docker -> fix all bugs

feature/2_forms v0.0.1
TBS093A 2021-05-17 22:20:08 +02:00
parent 87c9ec632d
commit c36180ffd0
2 changed files with 11 additions and 7 deletions

View File

@ -57,9 +57,12 @@ const ModelUploadForm = () => {
action={ handleModelUpload } action={ handleModelUpload }
/> />
<p> <p>
{ 'info' in upload_blend_file_status {
? upload_blend_file_status.info typeof upload_blend_file_status === 'string'
: '' ? ''
: 'info' in upload_blend_file_status
? upload_blend_file_status.info
: ''
} }
</p> </p>
</div> </div>

View File

@ -112,11 +112,12 @@ const RenderSingleImageForm = () => {
return { return {
fileName: refs[0].current.value.replace('.blend', ''), fileName: refs[0].current.value.replace('.blend', ''),
// fileName: 'testHand', // fileName: 'testHand',
rotate: refs[1].current.value / 62, // on backend 0.1 - 6.2 value setID: refs[1].current.value,
cameraID: refs[2].current.value, rotate: refs[2].current.value / 62, // on backend 0.1 - 6.2 value
cameraID: refs[3].current.value,
nameSeries: 0, nameSeries: 0,
resolutionX: refs[3].current.value, resolutionX: refs[4].current.value,
resolutionY: refs[4].current.value resolutionY: refs[5].current.value
} }
} }