Updated form error handling
This commit is contained in:
1 parent
68314a4ed2
commit
615e59fc6d
1 file changed
+1
-1
@@ -57,5 +57,5 @@ def get_dataset_choices():
|
||||
return dataset_choices
|
||||
|
||||
def send_errors_to_client(form):
|
||||
errors = [*form.errors]
|
||||
errors = [*form.errors.values()]
|
||||
return jsonify({ 'error': errors}), 400
|
||||
Reference in new issue
Block a user