fix
This commit is contained in:
parent
94b40bf24c
commit
810eb5926e
3 changed files with 3 additions and 4 deletions
|
@ -21,8 +21,8 @@ export const FormBuilder = observer((props: IFormBuilder) => {
|
|||
if (props.formBuilder.form.isNotEmpty()) {
|
||||
store.formViewModel = new FormViewModel(
|
||||
props.formBuilder.form.map((el) => InputBuilderViewModel.fromJSON(el)),
|
||||
props.formBuilder.context,
|
||||
props.formBuilder.result
|
||||
props.formBuilder.result,
|
||||
props.formBuilder.context
|
||||
);
|
||||
props.formBuilder.form.map((el) => InputBuilderViewModel.fromJSON(el));
|
||||
}
|
||||
|
|
|
@ -147,7 +147,6 @@ export class FormViewModel {
|
|||
}
|
||||
}
|
||||
}
|
||||
console.log(inputResult);
|
||||
if (inputResult instanceof Array) inputResult = JSON.stringify(inputResult.map((el) => JSON.parse(el)));
|
||||
operations.push({ regExp: new RegExp("\\${" + element.name + ".*?}"), result: inputResult });
|
||||
});
|
||||
|
|
|
@ -124,7 +124,7 @@ export const datasetFormMockResult = `{
|
|||
"n_cam_pose": \${N_CAM_POSE:number:5},
|
||||
"n_sample_on_pose": \${N_SAMPLE_ON_POSE:number:3},
|
||||
"n_series": \${N_SERIES:number:100},
|
||||
"image_format": \${image_format:Enum<F>:jpg},
|
||||
"image_format": \${image_format:Enum<F>:JPEG},
|
||||
"image_size_wh": [\${IMAGE_SIZE_WH_1:number:640}, \${IMAGE_SIZE_WH_2:number:480}]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue