Greater-London-Authority / ldn-viz-tools

https://greater-london-authority.github.io/ldn-viz-tools/
1 stars 0 forks source link

Fix missing key in checkboxgroup each block #324

Closed PaulioRandall closed 4 months ago

PaulioRandall commented 4 months ago

What does this change?

Adds a key to the <CheckboxGroup> each Svelte block.

Why?

Avoids the each block showing the same entry multiple times when the options are updated. This mostly affects hot reloading in dev mode but may affect a production app in cases where a <CheckboxGroup> options is updated via other options.

How is it tested?

Temp storybook. Removed before commit.

Is it complete?