Skip to content
Snippets Groups Projects
Commit 747eb464 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Fix dataset edit error handling

parent 9a85b08a
No related branches found
No related tags found
1 merge request!1624Fix dataset edit error handling
......@@ -202,11 +202,7 @@ export default {
this.$emit('update:modelValue', false)
} catch (e) {
if (e.response?.status === 400 && e.response.data) {
this.fieldErrors = Object.fromEntries(
Object
.entries(e.response.data)
.map(([key, value]) => [key, this.parseFieldErrors(value)])
)
this.fieldErrors = this.parseFieldErrors(e.response.data)
}
} finally {
this.createLoading = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment