Skip to content

Commit

Permalink
fix: pass current keys to update objects (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Apr 24, 2024
1 parent 42569b0 commit c44e493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspace/extension/src/lib/panel/PropertyList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
{#if value.length && expanded}
{@const entries = value.map((v, i) => ({ key: `${i}`, value: v, readonly }))}

<PropertyList {entries} keys={[key]} />
<PropertyList {entries} keys={[...keys, key]} />
{/if}
{:else if type === 'object'}
{#if value.__is === 'function'}
Expand All @@ -90,7 +90,7 @@
return { key, value: v, readonly };
})}

<PropertyList {entries} keys={[key]} />
<PropertyList {entries} keys={[...keys, key]} />
{/if}
{:else}
<span class="object">Object &lbrace; &rbrace;</span>
Expand Down

0 comments on commit c44e493

Please sign in to comment.