-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADF-3484] - Metadata drop-down list option for properties constrained by a list of values #5892
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor improvements
} | ||
|
||
return cardViewItemProperty; | ||
} | ||
|
||
private isListOfValues(constraint: Constraint[]): boolean { | ||
return constraint && constraint[0] && constraint[0].type === 'LIST'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the optional Chaining?
} | ||
|
||
private getPropertyConstraints(propertyName: string, definition: Definition): Constraint[] | null { | ||
const property = definition && definition.properties.find((item) => item.id === propertyName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the optional Chaining? and nullish coalescing?
…d by a list of values (#5892) * update js-api * include definition field * process LIST constraint * update tests * dropdown visibility * optional chaining
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
ADF-3484
What is the new behaviour?
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: