Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Apr 11, 2020
1 parent 82c3418 commit 514fbd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/legacy/ui/public/field_editor/field_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ import { ScriptingHelpFlyout } from './components/scripting_help';
import { FieldFormatEditor } from './components/field_format_editor';

import { FIELD_TYPES_BY_LANG, DEFAULT_FIELD_TYPES } from './constants';
import { copyField, executeScript, isScriptValid } from './lib';
import { executeScript, isScriptValid } from './lib';
//import { copyField, executeScript, isScriptValid } from './lib';
// import { Field } from '../../../../plugins/data/public';

import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
Expand Down Expand Up @@ -112,8 +114,6 @@ export class FieldEditor extends PureComponent {

const { field, indexPattern } = props;

// console.log('field_editors', Field);

this.state = {
isReady: false,
isCreating: false,
Expand All @@ -122,8 +122,9 @@ export class FieldEditor extends PureComponent {
fieldTypes: [],
fieldTypeFormats: [],
existingFieldNames: indexPattern.fields.map(f => f.name),
field: copyField(field, indexPattern),
// field: new Field(indexPattern, field), // what about short dots?
// field: copyField(field, indexPattern),
//field: new Field(indexPattern, field.$$spec), // what about short dots?
field: { ...field.$$spec },
fieldFormatId: undefined,
fieldFormatParams: {},
showScriptingHelp: false,
Expand Down

0 comments on commit 514fbd7

Please sign in to comment.