Skip to content

Commit 627170a

Browse files
committedOct 31, 2023
fix: svelte giving warnings about creating components with unknown properties
1 parent 1bf6045 commit 627170a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/lib/components/modes/tablemode/JSONValue.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@
4747
</script>
4848

4949
{#each renderers as renderer}
50-
<svelte:component this={renderer.component} {...renderer.props} />
50+
{#key renderer.component}
51+
<svelte:component this={renderer.component} {...renderer.props} />
52+
{/key}
5153
{/each}

‎src/lib/components/modes/treemode/JSONValue.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@
3434
</script>
3535

3636
{#each renderers as renderer}
37-
<svelte:component this={renderer.component} {...renderer.props} />
37+
{#key renderer.component}
38+
<svelte:component this={renderer.component} {...renderer.props} />
39+
{/key}
3840
{/each}

0 commit comments

Comments
 (0)
Please sign in to comment.