Skip to content

Build warnings on mixed types in graphQL #287

@chriswhong

Description

@chriswhong

docsSections is defined in config.js and is a nested array with mixed types (strings for docs articles, and objects for groups).

docsSections was eliminated from graphql queries, but parts of it are passed as context to DocsSectionLandingPage so it knows which articles to show cards for. This is causing a build warning, but works as expected.

The fix is to use an object with path key instead of the strings we are using for docs pages in docsSections... this will be more verbose, but then the types will match (object where path is required and other keys like title and description are optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions