set, not add

pull/8411/head
Simon H 3 years ago committed by GitHub
parent 59fa540373
commit a49a59f43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,6 +114,6 @@ export function validate_each_keys(ctx, list, get_context, get_key) {
if (keys.has(key)) {
throw new Error(`Cannot have duplicate keys in a keyed each: Keys at index ${keys.get(key)} and ${i} are duplicates`);
}
keys.add(key, i);
keys.set(key, i);
}
}

Loading…
Cancel
Save