return the form dict even if it is empty and let rjsf handle it (#812)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
7234f0f181
commit
1fdca1408b
|
@ -503,10 +503,7 @@ def task_show(
|
||||||
process_model=process_model_with_form,
|
process_model=process_model_with_form,
|
||||||
revision=process_instance.bpmn_version_control_identifier,
|
revision=process_instance.bpmn_version_control_identifier,
|
||||||
)
|
)
|
||||||
|
|
||||||
_update_form_schema_with_task_data_as_needed(form_dict, task_model.data)
|
_update_form_schema_with_task_data_as_needed(form_dict, task_model.data)
|
||||||
|
|
||||||
if form_dict:
|
|
||||||
task_model.form_schema = form_dict
|
task_model.form_schema = form_dict
|
||||||
|
|
||||||
if form_ui_schema_file_name:
|
if form_ui_schema_file_name:
|
||||||
|
@ -516,7 +513,6 @@ def task_show(
|
||||||
process_model=process_model_with_form,
|
process_model=process_model_with_form,
|
||||||
revision=process_instance.bpmn_version_control_identifier,
|
revision=process_instance.bpmn_version_control_identifier,
|
||||||
)
|
)
|
||||||
if ui_form_contents is not None:
|
|
||||||
task_model.form_ui_schema = ui_form_contents
|
task_model.form_ui_schema = ui_form_contents
|
||||||
else:
|
else:
|
||||||
task_model.form_ui_schema = {}
|
task_model.form_ui_schema = {}
|
||||||
|
|
Loading…
Reference in New Issue