Skip to content
Snippets Groups Projects
Commit 15e99f57 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Fix: Debugger does not show undefined factSet any more

parent 9642cb4f
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
.flat();
// Deduplicate entries
const factsSet = new Set(allFacts);
return [...factsSet];
return [...factsSet].filter(e => e !== undefined);
}
let seenFactIds = new Set<String>([
......@@ -93,6 +93,7 @@
addFactInputValue = "";
}}>Add</button
>
<button style="width: 13rem;" on:click={() => gameFactsStore.set([])}>Reset facts</button>
</div>
<style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment