1
0
forked from test/crm

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.

(cherry picked from commit ea2e44a2befd5cfd775f7e1b0d3c2321f6d075b0)
This commit is contained in:
wasim3357 2025-08-11 17:42:38 +05:30 committed by Mergify
parent 6d7372240f
commit bd3aca85ac

View File

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