Slice machine crashes browser when adding uid

I've got a type that I want to add a uid to (as I guess that's how we can add a page slug) however when I try to add this field to my type it crashes the browser.

I wish I had more info however there are no errors and no network requests

is there a workaround in the meantime?

Resolved this by just editing customtypes/product/index.json and pushing. A bit more info on this, it was only reproducible on one of my types. If it helps this is the json

{
  "id": "product",
  "label": "Product",
  "repeatable": true,
  "status": true,
  "json": {
    "Main": {
      "uid": {
        "config": {
          "label": "uid",
          "placeholder": ""
        },
        "type": "UID"
      },
      "heading": {
        "type": "Text",
        "config": {
          "label": "Heading",
          "placeholder": ""
        }
      },
      "subHeading": {
        "type": "Text",
        "config": {
          "label": "Sub Heading",
          "placeholder": ""
        }
      },
      "image": {
        "type": "Image",
        "config": {
          "label": "Image",
          "constraint": {
            "width": null,
            "height": 420
          },
          "thumbnails": []
        }
      },
      "cost": {
        "type": "Number",
        "config": {
          "label": "Cost Per Month",
          "placeholder": ""
        }
      },
      "costDescription": {
        "type": "Text",
        "config": {
          "label": "Cost Description",
          "placeholder": ""
        }
      },
      "overviewHeading": {
        "type": "Text",
        "config": {
          "label": "Overview Heading",
          "placeholder": ""
        }
      },
      "overviewDescription": {
        "type": "StructuredText",
        "config": {
          "label": "Overview Description",
          "placeholder": "",
          "allowTargetBlank": true,
          "multi": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl"
        }
      },
      "overviewImage": {
        "type": "Image",
        "config": {
          "label": "Overview Image",
          "constraint": {},
          "thumbnails": []
        }
      },
      "slices": {
        "type": "Slices",
        "fieldset": "Slice Zone",
        "config": {
          "choices": {
            "key_question": {
              "type": "SharedSlice"
            }
          }
        }
      }
    }
  }
}

Hey Kyle,

Had you made any manual changes to the Custom Type before this?

Thanks.

Hey, nope definitely not. I've got a local history of the changes. After this I also noticed that I couldnt set slices, it cleared them and made the selection read only.

I had to remove the following to fix that

"slices": {
        "type": "Slices",
        "fieldset": "Slice Zone",
        "config": {
          "choices": {
            "benefit": {
              "type": "SharedSlice"
            },
            "feature_item": {
              "type": "SharedSlice"
            },
            "question_answer": {
              "type": "SharedSlice"
            }
          }
        }
      }

Making this just {} fixed that for me.

OK, really strange. This is the first time I've ever seen this. What version of Slice Machine are you on?

If you see this again let me know.

Will do, am on 0.3.7

1 Like