# Slice Labels have completely disappeared

**URL:** <https://community.prismic.io/t/slice-labels-have-completely-disappeared/9673>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [April 6, 2022, 3:54pm UTC](https://community.prismic.io/t/slice-labels-have-completely-disappeared/9673 "2022-04-06T15:54:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kris](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kris](https://community.prismic.io/u/kris)\
**Post date:** [April 6, 2022, 8:44pm UTC](https://community.prismic.io/t/slice-labels-have-completely-disappeared/9673/4 "2022-04-06T20:44:13Z")

</div>

Hey @Pau

A JSON structure won't be very helpful as the JSON structured itself has been altered without nobody touching it (that's the problem I'm reporting)

This is the JSON structure current present for the slice with the label:

```auto
          "cta_section" : {
            "type" : "Slice",
            "fieldset" : "CTA Section",
            "description" : "Title, perks list & CTA - terminal & inlined",
            "icon" : "check",
            "display" : "grid",
            "non-repeat" : {
              "title" : {
                "type" : "StructuredText",
                "config" : {
                  "single" : "heading1,heading2,heading3,heading4,heading5,heading6",
                  "label" : "Title"
                }
              },
              "cta_link" : {
                "type" : "Link",
                "config" : {
                  "label" : "cta link",
                  "placeholder" : "If left blank, it defaults to \"#start-building\"",
                  "select" : null
                }
              },
              "cta_text" : {
                "type" : "Text",
                "config" : {
                  "label" : "CTA Text"
                }
              }
            },
            "repeat" : {
              "perk" : {
                "type" : "Text",
                "config" : {
                  "label" : "Perk"
                }
              }
            }
          },

```

However, there are no labels defined in the custom type (and I'm 10000% sure that there used to be but I don't have a way to prove it as they are now gone)

```auto
      "config" : {
        "labels" : null,

```

While in my Customers custom type, where I do have the same slice + labels (still there), I have

```auto
        "labels" : {
          "carousel" : [],
          "section_title" : [],
          "story_card_link" : [],
          "cta_section" : [ {
            "name" : "terminal",
            "display" : "terminal"
          }, {
            "name" : "inlined",
            "display" : "inlined"
          } ]
        },

```

This has been previously reported bug:

> [@BUG - Slice Labels are being deleted](https://community.prismic.io/t/bug-slice-labels-are-being-deleted/7719):
>
> 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.

> [@Rich text images lose custom labels after editing](https://community.prismic.io/t/rich-text-images-lose-custom-labels-after-editing/3842):
>
> Images I have in document text seem to lose their custom labels after editing. Here is what I did Created a document with a rich text section. The section includes images. I defined a custom label called text-center, which I applied to some images. This works fine and my images get the custom label applied. Edit the document in any way, republish. The labels applied to the images have disappeared.

> [@Can't add Rich Text Labels in SliceMachine](https://community.prismic.io/t/cant-add-rich-text-labels-in-slicemachine/1792):
>
> We recently upgraded our prismic repo to the Slice Machine repo. We are still using the Prismic UI to add new slices and make updates. I edit and add labels directly in the JSON editor. Ex: [image] After I try to add a new slice, I get JSON errors related to labels. It somehow is parsing the "labels" incorrectly when previously it was just an array. Ex: Can we continue to use the Prismic UI to make updates and add slices rather than the Slice Machine CLI? Is this error relating to…

* * *

I can redo the slice and use select field instead of a label but that means that I need to go through all my 150+ documents and reassign the correct value.

---

_[View the full topic](https://community.prismic.io/t/slice-labels-have-completely-disappeared/9673)._
