Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update per comments
Browse files Browse the repository at this point in the history
wylieconlon committed Oct 16, 2019
1 parent 3529392 commit 05da4b6
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -61,11 +61,7 @@ export function DataTableLayer({

const originalOrder = datasource.getTableSpec().map(({ columnId }) => columnId);
// When we add a column it could be empty, and therefore have no order
const sortedColumns = originalOrder.concat(
layer.columns.filter(id => {
return !originalOrder.includes(id);
})
);
const sortedColumns = Array.from(new Set(originalOrder.concat(layer.columns)));

return (
<EuiPanel className="lnsConfigPanel__panel" paddingSize="s">
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ export function BucketNestingEditor({
>
<>
<EuiRadio
id={generator()}
id={generator('topLevel')}
data-test-subj="indexPattern-nesting-topLevel"
label={
column.operationType === 'terms'
@@ -86,7 +86,7 @@ export function BucketNestingEditor({
onChange={toggleNesting}
/>
<EuiRadio
id={generator()}
id={generator('bottomLevel')}
data-test-subj="indexPattern-nesting-bottomLevel"
label={
column.operationType === 'terms'

0 comments on commit 05da4b6

Please sign in to comment.