Small clean-up (#1827)

* chore: avoid shadow variable name

* chore: map could just be foreach

* clean uneeded template literal

* lint
This commit is contained in:
Alex Christoffer Rasmussen
2025-10-13 20:24:25 +02:00
committed by GitHub
parent 9b36f36f73
commit 45e7373279
6 changed files with 10 additions and 10 deletions
@@ -355,7 +355,7 @@ export function migrateRundown(
const newCustom: EntryCustomFields = {};
if (translationTable) {
Object.entries(custom).map(([key, value]) => {
Object.entries(custom).forEach(([key, value]) => {
const newKey = translationTable.get(key);
if (newKey) {
newCustom[newKey] = value;