Merge pull request #1172 from frappe/mergify/bp/main-hotfix/pr-1133
fix(Org Modal): Setting loading false in case of Validation Error (backport #1133)
This commit is contained in:
commit
1b0a92c0c5
@ -108,6 +108,7 @@ async function createOrganization() {
|
|||||||
onError: (err) => {
|
onError: (err) => {
|
||||||
if (err.error.exc_type == 'ValidationError') {
|
if (err.error.exc_type == 'ValidationError') {
|
||||||
error.value = err.error?.messages?.[0]
|
error.value = err.error?.messages?.[0]
|
||||||
|
loading.value = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user