Skip to content

Commit

Permalink
TS Error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
garciafdezpatricia committed Jun 10, 2024
1 parent 22fb036 commit 5409887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/session/PurposeCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5409887

Please sign in to comment.