Skip to content

Empty link rendered when no external docs #6975

@anthony-kopczyk

Description

@anthony-kopczyk

Q&A (please complete the following information)

  • OS: Windows / WSL
  • Browser: Chrome
  • Method of installation: npm
  • Swagger-UI version: 3.43.0
  • Swagger/OpenAPI version: OpenAPI 3.0

Describe the bug you're encountering

When an API specification is loaded that does not have external docs, an empty link is rendered on the page.

To reproduce...

Load an API specification into swagger UI that does not have external docs.

Expected behavior

There should be not be an empty link on the page for external doc information

Screenshots

image

Additional context or thoughts

This looks like it was in one of the latest changes of the info component. A condition was changed from checking externalDocsUrl to externalDocs. Because externalDocs is a map it's always truthy.

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