Fixes issue with the alarm monitor (only sometimes) listing a null missing alarm source.

This commit is contained in:
PsiOmega
2015-04-10 15:19:55 +02:00
parent a8bf62634e
commit 080b0178ab

View File

@@ -85,7 +85,7 @@
"origin_lost" = A.origin == null,
"has_cameras" = cameras.len,
"cameras" = cameras,
"lost_sources" = sanitize(english_list(lost_sources, nothing_text = "", and_text = ", "))))
"lost_sources" = lost_sources.len ? sanitize(english_list(lost_sources, nothing_text = "", and_text = ", ")) : ""))
data["categories"] = categories
ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open)