Multiple bug fixing
This commit is contained in:
@@ -33,7 +33,9 @@ const error = ref(null)
|
||||
const formInitialHash = ref(null)
|
||||
|
||||
function isDirty() {
|
||||
return formInitialHash.value && updatedForm.value && formInitialHash.value !== hash(JSON.stringify(updatedForm.value.data() ?? null))
|
||||
return formInitialHash.value &&
|
||||
updatedForm.value &&
|
||||
formInitialHash.value !== hash(JSON.stringify(updatedForm?.value?.data() ?? null))
|
||||
}
|
||||
|
||||
function initUpdatedForm() {
|
||||
|
||||
@@ -71,14 +71,14 @@
|
||||
}
|
||||
]
|
||||
|
||||
if (user.value.is_subscribed) {
|
||||
if (user?.value?.is_subscribed) {
|
||||
tabs.splice(1, 0, {
|
||||
name: 'Billing',
|
||||
route: 'settings-billing'
|
||||
})
|
||||
}
|
||||
|
||||
if (user.value.admin) {
|
||||
if (user?.value?.admin) {
|
||||
tabs.push({
|
||||
name: 'Admin',
|
||||
route: 'settings-admin'
|
||||
|
||||
Reference in New Issue
Block a user