Skip to content

Issue: Type error for frontMatter.content.sorting data. #183

Description

@iveptawebadmin

Describe the bug

"Incorrect type. Expected "object".'

image

I think that this is supposed to be an array of objects and not an object itself.

To Reproduce

Add this config data to the frontmatter.json file and see the Problem.

"frontMatter.content.sorting": [
    {
      "title": "Date (asc)",
      "name": "date",
      "order": "asc",
      "type": "date"
    },
    {
      "title": "Date (desc)",
      "name": "date",
      "order": "desc",
      "type": "date"
    },
    {
      "title": "Title (asc)",
      "name": "title",
      "order": "asc",
      "type": "string"
    },
    {
      "title": "Title (desc)",
      "name": "title",
      "order": "desc",
      "type": "string"
    }
  ],

Expected behavior

Not show a Problem with the Array of Objects.

Additional context

Running on GitPod.io, can share the workspace for troubleshooting if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions