mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +02:00
Linting and cleanup
This commit is contained in:
parent
44b8163422
commit
0feb0a7ef8
2 changed files with 3 additions and 3 deletions
|
@ -830,7 +830,7 @@ function initializeWidgetOnList(list, parentId) {
|
|||
if (data.error) {
|
||||
// Clear the field if the SO doesn't exist
|
||||
$seniorOfficial.val("").trigger("change");
|
||||
console.error('Error in AJAX call: ' + data.error);
|
||||
console.error("Error in AJAX call: " + data.error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -853,7 +853,7 @@ function initializeWidgetOnList(list, parentId) {
|
|||
$seniorOfficial.append(userOption).trigger("change");
|
||||
}
|
||||
})
|
||||
.catch(error => console.error('Error fetching senior official:', error));
|
||||
.catch(error => console.error("Error fetching senior official: ", error));
|
||||
}
|
||||
|
||||
function handleStateTerritoryChange(stateTerritory, urbanizationField) {
|
||||
|
|
|
@ -26,7 +26,7 @@ def get_senior_official_from_federal_agency_json(request):
|
|||
# Convert the agency object to a dictionary
|
||||
so_dict = model_to_dict(senior_official)
|
||||
|
||||
# The phone number field isn't json serializable, so we
|
||||
# The phone number field isn't json serializable, so we
|
||||
# convert this to a string first if it exists.
|
||||
if "phone" in so_dict and so_dict.get("phone"):
|
||||
so_dict["phone"] = str(so_dict["phone"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue