aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-02 17:48:15 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-06 12:22:23 +0100
commit7bff609a74c934c2d0a1a2ef05f9b72973c73c33 (patch)
tree28c7d0ff1fc80bee030bcb84456d40e02050e50c
parent64335826ec42217e1a9a98c0dbc1f13ec034ddb4 (diff)
[Buckinghamshire] Default unknown types to street light.
-rw-r--r--web/cobrands/buckinghamshire/assets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/buckinghamshire/assets.js b/web/cobrands/buckinghamshire/assets.js
index 7c8995e41..3130c7fa7 100644
--- a/web/cobrands/buckinghamshire/assets.js
+++ b/web/cobrands/buckinghamshire/assets.js
@@ -63,7 +63,7 @@ var labeled_defaults = $.extend(true, {}, defaults, {
stylemap: streetlight_stylemap,
construct_asset_name: function(id) {
var code = id.replace(/[O0-9]+[A-Z]*/g, '');
- return {id: id, name: streetlight_code_to_type[code]};
+ return {id: id, name: streetlight_code_to_type[code] || 'street light'};
},
actions: {
asset_found: fixmystreet.assets.named_select_action_found,