Skip to content

Commit c026d64

Browse files
committed
fix: only output the key for each_key_duplicate
1 parent 8731f4f commit c026d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function validate_each_keys(collection, key_fn) {
3737
const b = String(i);
3838

3939
/** @type {string | null} */
40-
let k = String(array[i]);
40+
let k = String(key);
4141
if (k.startsWith('[object ')) k = null;
4242

4343
e.each_key_duplicate(a, b, k);

0 commit comments

Comments
 (0)