From b8064504d6c831fa401f8d421610b781b6eac7b5 Mon Sep 17 00:00:00 2001 From: rizky Date: Mon, 19 Aug 2024 21:22:13 -0700 Subject: [PATCH] fix --- comps/form/field/type/TypeLink.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comps/form/field/type/TypeLink.tsx b/comps/form/field/type/TypeLink.tsx index c004013..0f15624 100755 --- a/comps/form/field/type/TypeLink.tsx +++ b/comps/form/field/type/TypeLink.tsx @@ -223,7 +223,7 @@ const navigateLink = async ( alert("No URL defined!"); return false; } - + await api._kv("set", vhash, values); const lnk = location.hash.split("#").find((e) => e.startsWith("lnk=")); let prev_link = ""; @@ -256,12 +256,12 @@ export const fetchLinkParams = async ( return await Promise.all( parsed.map(async (e) => { if (link_cache[e]) { - return link_cache[e]; + return link_cache[e] as LinkParam; } const result = await api._kv("get", e); link_cache[e] = result; - return result; + return result as unknown as LinkParam; }) ); };