From ab546fabdbb8d7d8b2ee6d214a5a57aabfe4005a Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 29 May 2020 10:43:56 +0000 Subject: [PATCH] playing with validation --- src/components/modals/checks/DiskSpaceCheck.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modals/checks/DiskSpaceCheck.vue b/src/components/modals/checks/DiskSpaceCheck.vue index abb3251..239225d 100644 --- a/src/components/modals/checks/DiskSpaceCheck.vue +++ b/src/components/modals/checks/DiskSpaceCheck.vue @@ -95,7 +95,7 @@ export default { this.reloadChecks(); this.notifySuccess(r.data); }) - .catch(e => this.notifyError(e.response.data)); + .catch(e => this.notifyError(e.response.data.non_field_errors)); }, editCheck() { axios @@ -105,7 +105,7 @@ export default { this.reloadChecks(); this.notifySuccess(r.data); }) - .catch(e => this.notifyError(e.response.data)); + .catch(e => this.notifyError(e.response.data.non_field_errors)); }, reloadChecks() { if (this.policypk) {