From 3cdf7ac6435512bf8b7745b19c0512ec6b26a9d5 Mon Sep 17 00:00:00 2001 From: jkaplon Date: Mon, 13 Jul 2015 16:53:34 -0400 Subject: [PATCH] Default H2 text to coreId if coreName not present. --- views/core.hbs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/views/core.hbs b/views/core.hbs index a6d97a3..812d3d6 100644 --- a/views/core.hbs +++ b/views/core.hbs @@ -1,7 +1,11 @@ {{!< default}} {{! Grab 1st coreName value (it will be same value for entire set).}} -

Alerts from Particle Core: {{alerts.0.coreName}}

+{{#if alerts.0.coreName}} +

Alerts from Particle Core: {{alerts.0.coreName}}

+{{else}} +

Alerts from Particle Core: {{alerts.0.coreId}}

+{{/if}}