mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
clean up js check
This commit is contained in:
parent
772c29bb5f
commit
fe71af74f4
1 changed files with 1 additions and 3 deletions
|
@ -14,9 +14,7 @@ export function handleRequestingEntityFieldset() {
|
|||
const selectParent = select?.parentElement;
|
||||
const suborgContainer = document.getElementById("suborganization-container");
|
||||
const suborgDetailsContainer = document.getElementById("suborganization-container__details");
|
||||
let subOrgCreateNewOption;
|
||||
if (subOrgCreateNewOption)
|
||||
subOrgCreateNewOption = document.getElementById("option-to-add-suborg").value;
|
||||
const subOrgCreateNewOption = document.getElementById("option-to-add-suborg")?.value;
|
||||
// Make sure all crucial page elements exist before proceeding.
|
||||
// This more or less ensures that we are on the Requesting Entity page, and not elsewhere.
|
||||
if (!radios || !select || !selectParent || !suborgContainer || !suborgDetailsContainer) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue