From e0198da52cdea58d9cbdd66de11001d955791f04 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 6 Jan 2025 21:58:52 +0800 Subject: [PATCH] fix not show selected transaction category / account / tag --- src/lib/common.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/common.ts b/src/lib/common.ts index 9f3a526a..e8e11d78 100644 --- a/src/lib/common.ts +++ b/src/lib/common.ts @@ -303,7 +303,7 @@ export function getItemByKeyValue(src: Record[] | Record(src: Record[] | Record>, value: T, keyField: string, nameField: string, defaultName: T): T { +export function getNameByKeyValue(src: Record[] | Record>, value: T, keyField: string | null, nameField: string, defaultName: T): T { if (isArray(src)) { const arr = src as Record[]; @@ -339,11 +339,11 @@ export function getNameByKeyValue(src: Record[] | Record