# Widget deletion bug

**URL:** <https://community.gladysassistant.com/t/bug-suppression-de-widget/8324>\
**Category:** Configuration\
**Created:** [August 30, 2023, 8:33am UTC](https://community.gladysassistant.com/t/bug-suppression-de-widget/8324 "2023-08-30T08:33:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [August 30, 2023, 8:33am UTC](https://community.gladysassistant.com/t/bug-suppression-de-widget/8324/1 "2023-08-30T08:33:42Z")

</div>

I just encountered a problem while editing a dashboard and deleting a widget.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/ea98331a9291e77e7f4acdbf069079314c23b607.png)

When I try to delete the widget that contains my alarm info, pressing the little ‹&nbsp;x&nbsp;› deletes the widget below… 😕  
A bit annoying!

If I click the ‹&nbsp;x&nbsp;› on the bottom widget, the correct one is deleted.

To get around it I had to move the bottom widget to another column temporarily so I could safely delete the top one.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [August 30, 2023, 4:58pm UTC](https://community.gladysassistant.com/t/bug-suppression-de-widget/8324/2 "2023-08-30T16:58:44Z")

</div>

I’ll try to reproduce it tomorrow; after that I think it’s more of a display issue than anything else.

If you delete the first one, what’s probably happening is that the second one takes the first’s place (normal, it shifts up), except that the display isn’t refreshed so you get the impression that the second one was deleted (when it’s not).

I recommend you switch to the «&nbsp;Devices&nbsp;» box anyway 😃

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [August 30, 2023, 5:29pm UTC](https://community.gladysassistant.com/t/bug-suppression-de-widget/8324/3 "2023-08-30T17:29:20Z")

</div>

Ah ok, I didn’t want to take the risk of having to recreate this part of the dashboard, but I could also test, see if it’s simply a display issue 👍

I’m in the process of "migrating" all my widgets to the new one, yes 😉

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [August 31, 2023, 8:41am UTC](https://community.gladysassistant.com/t/bug-suppression-de-widget/8324/4 "2023-08-31T08:41:17Z")

</div>

Indeed, I can reproduce the bug, it’s an old bug that must have been there from the beginning 😛

It’s indeed a display-only bug (deletion does affect the correct widget), which occurs when you delete a «&nbsp;appareils de la pièce&nbsp;» widget above another «&nbsp;appareils de la pièce&nbsp;» widget of the same room only (very specific case).

Bug fixed in this PR :

> <https://github.com/GladysAssistant/Gladys/pull/1866>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> 
> \### Description of change
> 
> Fix refresh of device in rooms edition widget

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 5:55pm UTC](https://community.gladysassistant.com/t/bug-suppression-de-widget/8324/5 "2023-09-11T17:55:30Z")

</div>

Fix available in Gladys Assistant 4.28:

> [@Gladys Assistant 4.28 : Expiration des états de capteurs, nouveaux appareils Zigbee, et plus!](https://community.gladysassistant.com/t/gladys-assistant-4-28-expiration-des-etats-de-capteurs-nouveaux-appareils-zigbee-et-plus/8352):
>
> Salut à tous ! C’est lundi, c’est l’heure d’une nouvelle release Gladys smile Et il y a plein de nouveautés dans Gladys Assistant 4.28 !! Expiration des états de capteurs Désormais, les «&nbsp;vieux&nbsp;» états de capteurs ne seront plus affichés sur le tableau de bord, et seront remplacé par une indication que l’état n’est plus à jour : Pratique pour trouver les capteurs qui n’envoient plus de valeurs ! La délai par défaut est de 48 heures et peut-être modif…
