chore: cleans up outstanding tsc lints
This commit is contained in:
parent
a2b904811a
commit
12cb8c387f
5 changed files with 9 additions and 3 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue