# Favorite component not saving selected items

**URL:** <https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701>\
**Category:** Report a Bug\
**Created:** [April 9, 2020, 9:02pm UTC](https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701 "2020-04-09T21:02:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivano\_Di\_Domenico](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ivano_di_domenico/32/4409_2.png) [@Ivano\_Di\_Domenico](https://community.glideapps.com/u/Ivano_Di_Domenico)\
**Post date:** [April 9, 2020, 9:02pm UTC](https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701/1 "2020-04-09T21:02:30Z")

</div>

Hi. I’m trying out glideapps (which I’m finding is amazing!) with some baseball data from last year. I have the favorites component showing up for “Teams I Follow”. Staying in the app, selected items will appear when Favorite is tapped, and delected when tapping it again. However, if I close the app and go back in, the Favorites is not saved. 'What could I be doing wrong?

My app’s URL: [https://bbstlsched.glideapp.io](https://bbstlsched.glideapp.io)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 11, 2020, 5:27pm UTC](https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701/2 "2020-04-11T17:27:41Z")

</div>

I can confirm this. It doesn’t seem to be holding on to the favorites after reloading the app.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [April 11, 2020, 6:42pm UTC](https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701/3 "2020-04-11T18:42:27Z")

</div>

The problem is that you’re using a Template column as the Favorite key, which Glide doesn’t unfortunately support yet. It shouldn’t have let you pick it in the first place - that’s a bug that we’ll fix soon.

I suggest adding a Row ID column to that sheet, and then you won’t even have to worry about a key anymore.

---

<div class="post-metadata">

**Author:** ![Ivano\_Di\_Domenico](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ivano_di_domenico/32/4409_2.png) [@Ivano\_Di\_Domenico](https://community.glideapps.com/u/Ivano_Di_Domenico)\
**Post date:** [April 11, 2020, 6:54pm UTC](https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701/4 "2020-04-11T18:54:32Z")

</div>

I will give that a try. Thank you for checking it out.

---

<div class="post-metadata">

**Author:** ![Ivano\_Di\_Domenico](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ivano_di_domenico/32/4409_2.png) [@Ivano\_Di\_Domenico](https://community.glideapps.com/u/Ivano_Di_Domenico)\
**Post date:** [April 11, 2020, 7:02pm UTC](https://community.glideapps.com/t/favorite-component-not-saving-selected-items/6701/5 "2020-04-11T19:02:48Z")

</div>

That worked. Thanks again.
