# List stopped working

**URL:** <https://discourse.nodered.org/t/list-stopped-working/11095>\
**Category:** Dashboard\
**Created:** [14 May 2019 05:32 UTC](https://discourse.nodered.org/t/list-stopped-working/11095 "2019-05-14T05:32:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 May 2019 05:32 UTC](https://discourse.nodered.org/t/list-stopped-working/11095/1 "2019-05-14T05:32:47Z")

</div>

I found (somewhere) (here) a bit of code to list things in a msg.payload to a window/list.

It worked.

(Note: past tense)

I have not done anything to that part of the flow, so I am now stuck why it isn't working.

This is what is sent to it:

```auto
["TPG-VZBS","WiFi-DFFA","Tango2","Chilli","TelstraCCBDD1","TelstraCA5E31","Telstra Air","Fon WiFi","BigPond121C","Telstra Air","Fon WiFi"]

```

This is the flow part:

```auto
[{"id":"7139950b.cc620c","type":"json","z":"ce7fe016.6c0348","name":"","property":"payload","action":"","pretty":false,"x":350,"y":240,"wires":[["86eb2f06.fbf9f8","6313161a.1e53b8"]]},{"id":"6313161a.1e53b8","type":"ui_template","z":"ce7fe016.6c0348","group":"93ff74eb.94d69","name":"WiFi networks in range","order":2,"width":"4","height":"6","format":"<table id=\"table\" border=\"1\">\n <tr>\n <th>Visible WiFi networks</th> \n </tr>\n <tbody>\n <tr ng-repeat=\"row in msg.payload\">\n <td class=\"text\" >{{row}}</td>\n </tr>\n </tbody>\n</table>\n","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":640,"y":290,"wires":[[]]},{"id":"93ff74eb.94d69","type":"ui_group","z":"","name":"Visible WiFi networks","tab":"9c6bae0.3b358d","order":1,"disp":true,"width":"4","collapse":false},{"id":"9c6bae0.3b358d","type":"ui_tab","z":"","name":"List of visible WiFi networks","icon":"dashboard","order":33}]

```

I see the part I posted first going into the JSON{} node, but nothing is displayed.

As said: It used to work, and I haven't changed any part of the flow to do with that, so it should still work.

Any ideas?

This is maybe a better representation of the incoming message:

```auto
{"topic":"STATUS/WAP/","payload":["TPG-VZBS","WiFi-DFFA","Tango2","Chilli","TelstraCA5E31","Telstra Air","Fon WiFi","Telstra Air","Fon WiFi","TelstraCCBDD1"],"qos":2,"retain":false,"_msgid":"94e3028e.1d06b"}

```

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 May 2019 05:39 UTC](https://discourse.nodered.org/t/list-stopped-working/11095/2 "2019-05-14T05:39:53Z")

</div>

See browser console. It says`Error: [ngRepeat:dupes]`  
And there is link in this error to find explanation what happened. 😉

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 May 2019 05:49 UTC](https://discourse.nodered.org/t/list-stopped-working/11095/3 "2019-05-14T05:49:35Z")

</div>

Ok.....

I opened the browser console (CTL SHIFT K)

I am not seeing that. (Or I am blind)  
Alas that window doesn't support "search" (filter, but not sure if that is the same)  
Either way I can't see that error.

(I need to go to the eye specialist.)

Ok. I was in the wrong window when I opened it.

Looking now.

But!

Why did it used to work and now suddenly it doesn't?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [14 May 2019 05:56 UTC](https://discourse.nodered.org/t/list-stopped-working/11095/4 "2019-05-14T05:56:35Z")

</div>

But look at the array, what do you see ?

`Telstra Air,Fon Wifi,Telstra Air,Fon Wifi` - duplicates

change  
`row in msg.payload`  
to  
`row in msg.payload track by $index`
