eschutho commented on a change in pull request #11012:
URL:
https://github.com/apache/incubator-superset/pull/11012#discussion_r495298315
##########
File path: superset-frontend/src/components/AlteredSliceTag.jsx
##########
@@ -120,16 +152,10 @@ export default class AlteredSliceTag extends
React.Component {
})
.join(', ');
}
- if (
- this.state.controlsMap[key] &&
- this.state.controlsMap[key].type === 'BoundsControl'
- ) {
+ if (controlsMap[key] && controlsMap[key].type === 'BoundsControl') {
return `Min: ${value[0]}, Max: ${value[1]}`;
}
- if (
- this.state.controlsMap[key] &&
- this.state.controlsMap[key].type === 'CollectionControl'
- ) {
+ if (controlsMap[key] && controlsMap[key].type === 'CollectionControl') {
Review comment:
you can use optional chaining here and line 155 as well.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]