Open
Description
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
- @alexandrevryghem changed the return type of
getRenderTypes
fromstring
toBrowseByDataType
in Created abstract component loader class #2339 (line) - @WWelling discovered a possibly related bug in Fix simple item view author link #2949 (before the type change)
Metadata
Metadata
Assignees
Type
Projects
Status
🏗 In Progress