chore: cleans up outstanding tsc lints

This commit is contained in:
Lewis Wynne 2026-04-07 18:22:21 +01:00
parent a2b904811a
commit 12cb8c387f
5 changed files with 9 additions and 3 deletions

View file

@ -22,7 +22,7 @@ export function diffTemplates(old: Template, current: Template): TemplateDiff {
for (const record of current.records) {
for (const field of record.fields) {
if (!field.from) continue;
if (field.type === 'separator' || !field.from) continue;
const fromNames = field.from.split(',').map((s) => s.trim());
const match = fromNames.find((f) => oldFields.has(f));
if (match && !newFields.has(match)) {