This commit is contained in:
rizky 2024-08-19 21:22:13 -07:00
parent 4b94f783b4
commit b8064504d6
1 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ const navigateLink = async (
alert("No URL defined!"); alert("No URL defined!");
return false; return false;
} }
await api._kv("set", vhash, values); await api._kv("set", vhash, values);
const lnk = location.hash.split("#").find((e) => e.startsWith("lnk=")); const lnk = location.hash.split("#").find((e) => e.startsWith("lnk="));
let prev_link = ""; let prev_link = "";
@ -256,12 +256,12 @@ export const fetchLinkParams = async (
return await Promise.all( return await Promise.all(
parsed.map(async (e) => { parsed.map(async (e) => {
if (link_cache[e]) { if (link_cache[e]) {
return link_cache[e]; return link_cache[e] as LinkParam;
} }
const result = await api._kv("get", e); const result = await api._kv("get", e);
link_cache[e] = result; link_cache[e] = result;
return result; return result as unknown as LinkParam;
}) })
); );
}; };