@lavalogic/scoria 0.37.48 → 0.37.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,11 @@
64
64
  {#if filteredChoices.length === 0}
65
65
  <span>No Results</span>
66
66
  {/if}
67
- {#each filteredChoices as choice (choice.label)}
67
+ <!-- Keyed by index, not `choice.label`: labels are not guaranteed
68
+ unique (e.g. a courier can expose two services with the same
69
+ name), and a duplicate `{#each}` key throws `each_key_duplicate`.
70
+ The buttons hold no per-item state, so index keying is safe. -->
71
+ {#each filteredChoices as choice, index (index)}
68
72
  {#if selected === choice.label}
69
73
  {#if choice.callback}
70
74
  <button
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.37.48",
4
+ "version": "0.37.49",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },