diff --git a/src/pages/Customer/Card/CustomerGreuges.vue b/src/pages/Customer/Card/CustomerGreuges.vue index 0dcb3a3a9..8cca2ef23 100644 --- a/src/pages/Customer/Card/CustomerGreuges.vue +++ b/src/pages/Customer/Card/CustomerGreuges.vue @@ -13,7 +13,7 @@ const { t } = useI18n(); const route = useRoute(); const stateStore = computed(() => useStateStore()); const rows = ref([]); -const totalAmount = ref(0); +const totalAmount = ref(); const filter = { include: [ @@ -75,7 +75,7 @@ const columns = computed(() => [ }, { align: 'left', - field: (value) => value.user.name, + field: (value) => value?.user?.name, label: t('Created by'), name: 'createdBy', }, @@ -87,7 +87,7 @@ const columns = computed(() => [ }, { align: 'left', - field: (value) => value.greugeType.name, + field: (value) => value?.greugeType?.name, label: t('Type'), name: 'type', }, @@ -108,26 +108,9 @@ const setRows = (data) => {