refactor(persons): replace non-null assertion with null guard on removeFormEl

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-12 14:36:47 +02:00
parent 0b95c90e7a
commit a2d078b8f9

View File

@@ -43,9 +43,9 @@ async function handleDelete(id: string) {
body: m.person_alias_delete_body(), body: m.person_alias_delete_body(),
destructive: true destructive: true
}); });
if (confirmed) { if (confirmed && removeFormEl) {
if (aliasIdInputEl) aliasIdInputEl.value = id; if (aliasIdInputEl) aliasIdInputEl.value = id;
removeFormEl!.requestSubmit(); removeFormEl.requestSubmit();
} }
} }
</script> </script>