Skip to content

Metadata representation components compare BrowseByDataType values to ResourceType #2955

Open
@ybnd

Description

@ybnd

Describe the bug
This discrepancy was highlighted by the @typescript-eslint/no-unsafe-enum-comparison rule in #2865
There is no overlap between the BrowseByDataType enum and the string value of VALUE_LIST_BROWSE_DEFINITION. Appears in

Expected behavior
The comparison should be consistent with the types on either side, possibly by using this.mdRepresentation.browseDefinition.type.

Related work

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions