# Led icon changed

**URL:** <https://discourse.nodered.org/t/led-icon-changed/656>\
**Category:** Dashboard\
**Created:** [7 June 2018 09:21 UTC](https://discourse.nodered.org/t/led-icon-changed/656 "2018-06-07T09:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![ozpos](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@ozpos](https://discourse.nodered.org/u/ozpos)\
**Post date:** [22 August 2021 20:37 UTC](https://discourse.nodered.org/t/led-icon-changed/656/26 "2021-08-22T20:37:21Z")

</div>

Thank you. Just tried it but it makes the led array disappear altogether.  
It may be something to do with the else. I do not fully understand what this is:

```auto
            }else if (typeof $scope.msg.payload !== "number"){
                $scope.msg = {"bargraph":[...bargraph], "payload": 0, "label":label}
            }   
        }else{
            $scope.msg = {"bargraph":[...bargraph], "payload": 0, "label":label}
        }

```

In the original code msg.payload was a number. I do not know what to put here in its place ?  
P.S. I started a new topic [https://discourse.nodered.org/t/dashboard-template-led-array-problems/50022?u=ozpos](https://discourse.nodered.org/t/dashboard-template-led-array-problems/50022)

---

_[View the full topic](https://discourse.nodered.org/t/led-icon-changed/656)._
