# After deploy two instances of the same node

**URL:** <https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343>\
**Category:** Developing Nodes\
**Tags:** dashboard-2\
**Created:** [3 January 2025 19:34 UTC](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343 "2025-01-03T19:34:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangenkuesse](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wangenkuesse/32/93551_2.png) [@wangenkuesse](https://discourse.nodered.org/u/wangenkuesse)\
**Post date:** [3 January 2025 19:34 UTC](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343/1 "2025-01-03T19:34:58Z")

</div>

I am developing an 4-state switch node with integrated dashboard 2 widget.

After deploy it seems to me that I find 2 instances of the same node, with the same nodeId communicating with the widget.

There is a function updating the widget periodically. After deploy the frequency is doubled, so I assume, I have two instances.

What do I do wrong to have two instances after deploy?  
How can I debug this problem?

> **[GitHub - beckflorian/ui-mainswitch: Third party node for dashboard 2.0 in node red.](https://github.com/beckflorian/ui-mainswitch)**
>
> Third party node for dashboard 2.0 in node red.

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [3 January 2025 20:59 UTC](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343/2 "2025-01-03T20:59:07Z")

</div>

> [@wangenkuesse](#):
>
> [GitHub - beckflorian/ui-mainswitch: Third party node for dashboard 2.0 in node red.](https://github.com/beckflorian/ui-mainswitch)

Hi!

> <https://github.com/beckflorian/ui-mainswitch/blob/c7b6681b83962980da210f0b72966623c2a100a4/nodes/ui-mainswitch.js#L470C1-L475C12>

Shouldn't line 473 read  
` clearInterval(node.tick); }`  
?

BR, Ralph

---

<div class="post-metadata">

**Author:** ![wangenkuesse](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wangenkuesse/32/93551_2.png) [@wangenkuesse](https://discourse.nodered.org/u/wangenkuesse)\
**Post date:** [5 January 2025 16:08 UTC](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343/3 "2025-01-05T16:08:24Z")

</div>

Ralph,

you are right. Problem solved. I appreciate that very much...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 January 2025 16:08 UTC](https://discourse.nodered.org/t/after-deploy-two-instances-of-the-same-node/94343/4 "2025-01-19T16:08:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
