From 0e6e85825aa12d8cb42298acbeb842deb8def20b Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 5 Feb 2026 01:02:38 +0000 Subject: [PATCH] Avoid stacktrace on request failure --- html/static/js/address-or-report-suggestion.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/static/js/address-or-report-suggestion.js b/html/static/js/address-or-report-suggestion.js index 7ee9cb29..92a6098c 100644 --- a/html/static/js/address-or-report-suggestion.js +++ b/html/static/js/address-or-report-suggestion.js @@ -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 []; } }