Skip to content

Commit

Permalink
🏷️ Fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jul 6, 2022
1 parent e125297 commit bb72cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ import { FieldInput } from './field_input';
import { NameInput } from '../../shared_components';
import { ParamEditorProps } from '../operations/definitions';
import { WrappingHelpPopover } from '../help_popover';
import { FieldChoice } from './field_select';
import { isColumn } from '../operations/definitions/helpers';
import { FieldChoiceWithOperationType } from './field_select';

export interface DimensionEditorProps extends IndexPatternDimensionEditorProps {
selectedColumn?: GenericIndexPatternColumn;
Expand Down Expand Up @@ -606,7 +606,7 @@ export function DimensionEditor(props: DimensionEditorProps) {
})
);
}}
onChooseField={(choice: FieldChoice) => {
onChooseField={(choice: FieldChoiceWithOperationType) => {
trackUiEvent('indexpattern_dimension_field_changed');
updateLayer(
insertOrReplaceColumn({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
IncompleteColumn,
GenericOperationDefinition,
} from '../operations';
import { FieldChoice, FieldSelect } from './field_select';
import { FieldChoiceWithOperationType, FieldSelect } from './field_select';
import { hasField } from '../pure_utils';
import type {
IndexPattern,
Expand Down Expand Up @@ -96,7 +96,7 @@ export interface ReferenceEditorProps {
| ((prevLayer: IndexPatternLayer) => IndexPatternLayer)
| GenericIndexPatternColumn
) => void;
onChooseField: (choice: FieldChoice) => void;
onChooseField: (choice: FieldChoiceWithOperationType) => void;
onDeleteColumn: () => void;
onChooseFunction: (operationType: string, field?: IndexPatternField) => void;

Expand Down

0 comments on commit bb72cc7

Please sign in to comment.