Skip to content

Commit

Permalink
fix: svelte giving warnings about creating components with unknown pr…
Browse files Browse the repository at this point in the history
…operties
  • Loading branch information
josdejong committed Oct 31, 2023
1 parent 1bf6045 commit 627170a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib/components/modes/tablemode/JSONValue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@
</script>

{#each renderers as renderer}
<svelte:component this={renderer.component} {...renderer.props} />
{#key renderer.component}
<svelte:component this={renderer.component} {...renderer.props} />
{/key}
{/each}
4 changes: 3 additions & 1 deletion src/lib/components/modes/treemode/JSONValue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@
</script>

{#each renderers as renderer}
<svelte:component this={renderer.component} {...renderer.props} />
{#key renderer.component}
<svelte:component this={renderer.component} {...renderer.props} />
{/key}
{/each}

0 comments on commit 627170a

Please sign in to comment.