fix(Org Modal): Setting loading false in case of Validation Error

In this case user can add the details and save the form again instead of refreshing and then trying again for fresh.
This commit is contained in:
wasim3357 2025-08-11 17:42:38 +05:30 committed by GitHub
parent 5dc3a364a4
commit ea2e44a2be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,7 @@ async function createOrganization() {
onError: (err) => {
if (err.error.exc_type == 'ValidationError') {
error.value = err.error?.messages?.[0]
loading.value = false
}
},
},