👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

Error loading content due to removed ordering in schema, resolved by changing sort by option.

1 replies
Last updated: Aug 16, 2020
Hello!:)
I was doing some work with
orderings
and
preview
. I deleted it in the schema and now I’m not capable of seeing any content for that post type. Instead I see the following error:
An error occurred while loading items:

Unexpected token "0.", expected expression

Any help/doc is appreciated. Thanks in advance!
Aug 16, 2020, 1:19 AM
Figured it out.
Looks like even though the
orderings
were removed, it stayed selected in the
sort by
dropdown. Changing the sort by to a default option caused the data to show again.
Aug 16, 2020, 11:54 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?