Avoid stacktrace on request failure
This commit is contained in:
parent
af516242d3
commit
0e6e85825a
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ class AddressOrReportInput extends HTMLElement {
|
|||
return data.features;
|
||||
} catch (error) {
|
||||
console.error('Error fetching geocoding suggestions:', error);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -105,6 +106,7 @@ class AddressOrReportInput extends HTMLElement {
|
|||
return data.reports;
|
||||
} catch (error) {
|
||||
console.error("Error fetching report suggestions:", error);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue