From 9b2b7d74efc901ef9a35f3fbad1237c1f1cbf4a0 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Tue, 22 Dec 2020 11:48:16 -0500 Subject: [PATCH] Update $page object to use $page.props --- resources/js/Pages/Users/Edit.vue | 2 +- resources/js/Shared/FlashMessages.vue | 14 +++++++------- resources/js/Shared/Layout.vue | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index d2c3fea..9e385f6 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -88,7 +88,7 @@ export default { onStart: () => this.sending = true, onFinish: () => this.sending = false, onSuccess: () => { - if (Object.keys(this.$page.errors).length === 0) { + if (Object.keys(this.$page.props.errors).length === 0) { this.form.photo = null this.form.password = null } diff --git a/resources/js/Shared/FlashMessages.vue b/resources/js/Shared/FlashMessages.vue index bcb2214..642dfb0 100644 --- a/resources/js/Shared/FlashMessages.vue +++ b/resources/js/Shared/FlashMessages.vue @@ -1,21 +1,21 @@