From 0b36048f47ff4daa5a63535e363fa5ad7c94b0c0 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sun, 21 Aug 2022 20:01:41 +0000 Subject: [PATCH] use null instead of undefined --- web/src/components/TransactionInputRow.vue | 4 ++-- web/src/stores/transactions.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/components/TransactionInputRow.vue b/web/src/components/TransactionInputRow.vue index 40db10a..da8fa19 100644 --- a/web/src/components/TransactionInputRow.vue +++ b/web/src/components/TransactionInputRow.vue @@ -16,9 +16,9 @@ const TX = ref({ Memo: "", Amount: 0, Payee: "", - PayeeID: undefined, + PayeeID: null, Category: "", - CategoryID: undefined, + CategoryID: null, CategoryGroup: "", GroupID: "", ID: "", diff --git a/web/src/stores/transactions.ts b/web/src/stores/transactions.ts index cb90112..f2ceb7e 100644 --- a/web/src/stores/transactions.ts +++ b/web/src/stores/transactions.ts @@ -17,12 +17,12 @@ export interface Transaction { TransferAccount: string; CategoryGroup: string; Category: string; - CategoryID: string | undefined; + CategoryID: string | null; Memo: string; Status: string; GroupID: string; Payee: string; - PayeeID: string | undefined; + PayeeID: string | null; Amount: number; Reconciled: boolean; Account: string;