fix: only output the key for each_key_duplicate (#14147)

Fixes #14146
pull/14176/head
wackbyte 2 months ago committed by GitHub
parent 87d83ffa39
commit 57e27ae90e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: only output the key for each_key_duplicate

@ -37,7 +37,7 @@ export function validate_each_keys(collection, key_fn) {
const b = String(i); const b = String(i);
/** @type {string | null} */ /** @type {string | null} */
let k = String(array[i]); let k = String(key);
if (k.startsWith('[object ')) k = null; if (k.startsWith('[object ')) k = null;
e.each_key_duplicate(a, b, k); e.each_key_duplicate(a, b, k);

Loading…
Cancel
Save