Skip to content

Commit

Permalink
Fix i18n & TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Oct 28, 2020
1 parent 91d1def commit 4b45b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ReactNode } from 'react';
import { GenericObject } from './mappings_editor';

import { FieldConfig } from '../shared_imports';
import { PARAMETERS_DEFINITION, RUNTIME_FIELD_TYPES } from '../constants';
import { PARAMETERS_DEFINITION } from '../constants';

export interface DataTypeDefinition {
label: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const schema: FormSchema<RuntimeField> = {
validations: [
{
validator: emptyField(
i18n.translate('xpack.runtimeFields.form.validations.scriptIsRequiredErrorMessage', {
i18n.translate('xpack.runtimeFields.form.validations.nameIsRequiredErrorMessage', {
defaultMessage: 'Give a name to the field.',
})
),
Expand Down

0 comments on commit 4b45b7f

Please sign in to comment.