From 540988710ade97ad3d169bfe5fd74b42e3a728ec Mon Sep 17 00:00:00 2001 From: garciafdezpatricia Date: Mon, 10 Jun 2024 11:38:08 +0200 Subject: [PATCH] TS Error fixed --- src/session/PurposeCache.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/session/PurposeCache.ts b/src/session/PurposeCache.ts index f59ae8c..9ef843d 100644 --- a/src/session/PurposeCache.ts +++ b/src/session/PurposeCache.ts @@ -45,6 +45,9 @@ export async function addToCache(url: string, cache: PurposeCache) { ) { // eslint-disable-next-line no-param-reassign (cache[subject.value] ??= {})[ + // if the predicate.value is not a key of the map object this won't be executed, + // as it is already checked in the if expression + // @ts-ignore map[predicate.value] as "purposeLabel" | "definition" ] ??= object.value; }