# UIKit error when hiding \<SBConversation/\> tag

**URL:** <https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381>\
**Category:** React\
**Tags:** uikit\
**Created:** [December 7, 2020, 11:41pm UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381 "2020-12-07T23:41:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Colagreco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/andrew_colagreco/32/714_2.png) [@Andrew\_Colagreco](https://community.sendbird.com/u/Andrew_Colagreco)\
**Post date:** [December 7, 2020, 11:41pm UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/1 "2020-12-07T23:41:06Z")

</div>

Hi I am currently using sendbird-uikit “1.3.0”. When I conditionally hide the tag I am receiving error message below.

 ![Screen Shot 2020-12-07 at 6.37.32 PM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/031623894630abb6daf1f53d32416cb96079b17d.png)

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [December 8, 2020, 4:24am UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/2 "2020-12-08T04:24:03Z")

</div>

Hi @Andrew_Colagreco can you give us a little bit more context on this?

Code samples and a detailed description of your use case would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![Andrew\_Colagreco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/andrew_colagreco/32/714_2.png) [@Andrew\_Colagreco](https://community.sendbird.com/u/Andrew_Colagreco)\
**Post date:** [December 8, 2020, 2:21pm UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/3 "2020-12-08T14:21:11Z")

</div>

Hi @Sravan_S I posted the piece of code below that is causing this error. showConversation is just a boolean value that I turn on or off depending if the user has selected a channel or not. When the Boolean value turns false and we hide the ‘SBConversation\>’ tag we get the error every time. Let me know if you need anymore information.

 ![Screen Shot 2020-12-08 at 9.22.00 AM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/54b320f275475622a5f2c694db6325343aadd85b.png)

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [December 9, 2020, 1:39am UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/4 "2020-12-09T01:39:58Z")

</div>

Thanks for the sample, we will check and get back ASAP

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [December 11, 2020, 7:58am UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/5 "2020-12-11T07:58:14Z")

</div>

Hi, @Andrew_Colagreco sorry for the delay, the team is a bit occupied… Will reply this by next Dec-14

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [December 14, 2020, 2:21am UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/6 "2020-12-14T02:21:19Z")

</div>

Hi @Andrew_Colagreco we figured this out… It is a bug from our side, we will fix it ASAP to 1.3.1 and ping you  
Mean while, please try to use an error boundary to wrap SBConversation component

> **[Error Boundaries – React](https://reactjs.org/docs/error-boundaries.html)**
>
> A JavaScript library for building user interfaces

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [December 16, 2020, 9:40am UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/7 "2020-12-16T09:40:50Z")

</div>

Hey @Andrew_Colagreco  
Can you check our version 1.3.1?

---

<div class="post-metadata">

**Author:** ![Andrew\_Colagreco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/andrew_colagreco/32/714_2.png) [@Andrew\_Colagreco](https://community.sendbird.com/u/Andrew_Colagreco)\
**Post date:** [December 23, 2020, 6:44pm UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/8 "2020-12-23T18:44:29Z")

</div>

Hey @Sravan_S,

I actually updated to 2.0.0 Alpha for the open channels. It is currently still a problem in that version as well. I also encountered a bug in that version for a different issue. Should I create a new ticket for that bug? It is related to the sendbird selector getOpenChannelSendUserMessage.

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![Sravan\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sravan_s/32/83_2.png) [@Sravan\_S](https://community.sendbird.com/u/Sravan_S)\
**Post date:** [January 8, 2021, 3:46am UTC](https://community.sendbird.com/t/uikit-error-when-hiding-sbconversation-tag/1381/9 "2021-01-08T03:46:43Z")

</div>

Hi @Andrew_Colagreco

Sorry for the late reply… 2.0.0 Alpha should have this issue too, we fixed it in 2.0.0 and 1.3.1
