Skip to content

Commit 8046eff

Browse files
committed
refactor(cloudflare): drop a dead exception from the empty-type guard
create_dns_record now takes its record type from the recordType control, whose dropdown has no empty option, so the operation can never reach this guard with an empty type. Clear it unconditionally.
1 parent fb06f9a commit 8046eff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

apps/sim/blocks/blocks/cloudflare.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,9 +2408,7 @@ Return ONLY the JSON array - no explanations, no markdown fences.`,
24082408
if (result.purge_everything === 'true') result.purge_everything = true
24092409
else if (result.purge_everything === 'false') result.purge_everything = false
24102410

2411-
if (result.type === '' && result.operation !== 'create_dns_record') {
2412-
result.type = undefined
2413-
}
2411+
if (result.type === '') result.type = undefined
24142412
if (result.status === '') result.status = undefined
24152413
if (result.order === '') result.order = undefined
24162414
if (result.direction === '') result.direction = undefined

0 commit comments

Comments
 (0)