# BUG - Slice Labels are being deleted

**URL:** <https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719>\
**Category:** Prismic for Content Creators\
**Created:** [November 3, 2021, 4:17pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719 "2021-11-03T16:17:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![it13](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@it13](https://community.prismic.io/u/it13)\
**Post date:** [November 3, 2021, 4:17pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/1 "2021-11-03T16:17:40Z")

</div>

When creating a custom type, if I add labels to my custom slice, they are being deleted and disappearing.

They still appear in the API response sent back. However I have to keep adding them back in the Custom Type builder tool and they do not appear in the UI.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 3, 2021, 7:04pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/2 "2021-11-03T19:04:02Z")

</div>

Hello @it13, welcome to the community.

Can you please send me the URL of your repository and, if possible, a screen recording of the steps you follow to encounter the error?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 10, 2021, 9:14pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/4 "2021-11-10T21:14:24Z")

</div>

The threads close after a period of inactivity. Feel free to [flag it](https://community.prismic.io/t/re-open-a-thread/2175) if you need to continue the conversation.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [November 16, 2021, 2:03pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/5 "2021-11-16T14:03:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![it13](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@it13](https://community.prismic.io/u/it13)\
**Post date:** [November 16, 2021, 2:03pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/6 "2021-11-16T14:03:18Z")

</div>

[https://oneplanetcrowd.prismic.io/](https://oneplanetcrowd.prismic.io/)

its hard to re-produce the error, but I will try and record it next time it happens

thanks

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 17, 2021, 12:50am UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/8 "2021-11-17T00:50:58Z")

</div>

Hey @it13.

We need to know the workflow that you followed until you found the error to reproduce the case. So we can detect what causes it. Thanks.

---

<div class="post-metadata">

**Author:** ![it13](https://avatars.discourse-cdn.com/v4/letter/i/ee59a6/32.png) [@it13](https://community.prismic.io/u/it13)\
**Post date:** [November 17, 2021, 9:27am UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/9 "2021-11-17T09:27:12Z")

</div>

The workflow is:

create custom type \> add my custom label(s)

then when I go into Documents I can add my custom type and initially I see the new labels.

However when I later come back to the custom type the labels have disappeared. They still exist in the API call however, so it looks like it is just the UI that is missing them.

thanks

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 17, 2021, 10:29pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/12 "2021-11-17T22:29:30Z")

</div>

Hey there.

The team just informed me that this is a known bug that's currently being tracked in our backlog. But here's a workaround in the meantime:

- Create the Slice on a separate "Slice Making" Custom Type or Repository
- Copy Paste its JSON definition directly in the JSON editor of the Custom Type you want to add it to

Another option would be to replace your Slice Labels with a drop-down select field directly in the Slice. That will be a more stable option. I realize that this induces a lot of work on your side, so you'll are the best to judge which approach would work the best for you

We hope one of these workarounds will work for your team

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 22, 2021, 3:40pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/14 "2021-11-22T15:40:51Z")

</div>

This thread is being monitored as an open ticket in the internal Prismic issue tracker. The Prismic support team will update this post as we get more information from our dev team. If you have a similar use-case, you can [‘Flag’ this topic to reopen](https://community.prismic.io/t/re-open-a-thread/2175) and add it here.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:44pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/15 "2021-12-09T12:44:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![arpan](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@arpan](https://community.prismic.io/u/arpan)\
**Post date:** [January 13, 2022, 9:13am UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/16 "2022-01-13T09:13:05Z")

</div>

We are using this feature extensively on a new project for a client. Was not aware that it was buggy until the labels started disappearing.

Disappearing data seems like a critical issue -- is there any ETA on when this bug will be fixed?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 13, 2022, 9:26am UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/18 "2022-01-13T09:26:55Z")

</div>

Hi Arpan,

I understand that this is frustrating, although this is not something that is likely to be fixed, it's more likely to be deprecated as it has been replaced by the Slice Variations feature using Slice Machine.

> **[Create and Model a Component with Next.js](https://prismic.io/docs/technologies/create-and-model-a-component-nextjs#add-a-slice-variation)**
>
> This article will teach you how to generate a component template and model the CMS data with Slice Machine.

When you say "Disappearing data seems like a critical issue", the data doesn't actually disappear until the documents using the Slice have been republished, so if you re-add the label in the Custom Type the data will come back.

Let me know if you have any further questions.

---

<div class="post-metadata">

**Author:** ![arpan](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@arpan](https://community.prismic.io/u/arpan)\
**Post date:** [January 13, 2022, 10:03am UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/19 "2022-01-13T10:03:11Z")

</div>

But slice variations aren't available using the regular API, right? It's only available if you are using slice machine with React. So any other framework isn't supported for this.

Or is there a way to use variations over an API with a static site generator like 11ty etc?

---

<div class="post-metadata">

**Author:** ![arpan](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@arpan](https://community.prismic.io/u/arpan)\
**Post date:** [January 13, 2022, 10:54am UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/20 "2022-01-13T10:54:42Z")

</div>

The problem with saying that it's simple enough for me or my team to do it. But once we hand this over to the client, they are not going to be able to use the CMS in the way we designed it to work for them. Meaning this will get flagged as a bug and we will be asked to fix it.

The whole reason we are using Prismic is so that a non-technical person will be able to create and manage the content. If this feature is deprecated, it would be good to know -- as we had no idea that was the case.

For now we'll figure out a work around.

In the meantime, is there any plan to support variations over the API or will this only be supported if we use specific libraries?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 13, 2022, 1:02pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/21 "2022-01-13T13:02:34Z")

</div>

That's correct it's only available for react and vue users in terms of templating right now, the actual Slice (model) could still be built locally and sent to the Prismic repo with Slice Machine, this part is not technology-specific, it just wouldn't generate the code for you.

The Slice Labels feature isn't deprecated, if it was to be deprecated we would give everyone plenty of warning, the issue could be resolved when the team begins its overhaul on the editor. I don't have any confirmation on either of those things.

**Issue:**  
The Slice Labels only disappear when a Custom Type is edited using the visual editor, this is because the Slice Labels can only be edited with the JSON editor. For the moment you'll need to remember to check Slice Labels after editing a Custom Type (_I know this is frustrating_). So when you hand the content over to the user they shouldn't need to make any changes in the Custom Types becuase it will need to be reflected in the code, so they won't lose their Slice Labels.

**Solution:**  
The most reliable otpion is to use a Select Field as the first field in your Slice instead of Slice Labels. Your user can select what option they want using this field and the Select Field will never disappear as it is built using the Visual Builder. In your code you will use it the exact same way you use Slice Labels.

> **[Configure the Select Field](https://prismic.io/docs/core-concepts/select)**
>
> This article explains what the Select field is and how to configure it in the Custom Type builder.

Thanks.

---

<div class="post-metadata">

**Author:** ![arpan](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@arpan](https://community.prismic.io/u/arpan)\
**Post date:** [January 13, 2022, 2:52pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/22 "2022-01-13T14:52:32Z")

</div>

Yeah, I think that's what I'm going to do - we'll replace all the labels across the site with the select field and update the code to support that.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![arpan](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@arpan](https://community.prismic.io/u/arpan)\
**Post date:** [January 13, 2022, 2:53pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/23 "2022-01-13T14:53:23Z")

</div>

I'll also spend some time exploring slice machine and see if we can integrate it into our process. Thanks.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 14, 2022, 3:27pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/24 "2022-01-14T15:27:54Z")

</div>

Great, let me know how it goes.

---

<div class="post-metadata">

**Author:** ![arnor](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@arnor](https://community.prismic.io/u/arnor)\
**Post date:** [November 2, 2022, 1:39pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/26 "2022-11-02T13:39:44Z")

</div>

FYI I justed wanted to point out that this bug happens frequently for me as well

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [November 2, 2022, 2:06pm UTC](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719/27 "2022-11-02T14:06:20Z")

</div>

Hi Arnor,

Slice Labels have been replaced by Variations which is a fully supported feature without these issues:

> **[What Is Slice Machine?](https://prismic.io/docs/slice-machine#add-a-slice-variation)**
>
> Slice Machine is a desktop application that makes website development faster, easier, and smoother.

[Next page](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719.md?page=2)
