mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
Re-enable rule prefer-destructuring (only for objects) (#10867)
This commit is contained in:
committed by
GitHub
parent
c51168a30a
commit
352e8a1afd
@@ -427,7 +427,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
||||
intervalEndColumn,
|
||||
descriptionColumns,
|
||||
} = this.state;
|
||||
const slice = (valueOptions.find(x => x.value === value) || {}).slice;
|
||||
const { slice } = valueOptions.find(x => x.value === value) || {};
|
||||
if (sourceType !== ANNOTATION_SOURCE_TYPES.NATIVE && slice) {
|
||||
const columns = (slice.data.groupby || [])
|
||||
.concat(slice.data.all_columns || [])
|
||||
|
||||
Reference in New Issue
Block a user