Skip to content

Commit

Permalink
Fix issues with editing
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Sep 18, 2024
1 parent ea8010a commit 5a2edd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,13 @@

import React from 'react';

import { PathParameter } from '../../field_parameters';
import { NormalizedField, NormalizedFields } from '../../../../types';
import { UseField, Field } from '../../../../shared_imports';
import { getFieldConfig } from '../../../../lib';
import { BasicParametersSection } from '../edit_field';

interface Props {
field: NormalizedField;
allFields: NormalizedFields['byId'];
}

export const PassthroughType = ({ field, allFields }: Props) => {
export const PassthroughType = () => {
return (
<BasicParametersSection>
<PathParameter field={field} allFields={allFields} />

<UseField path="priority" config={getFieldConfig('priority')} component={Field} />
</BasicParametersSection>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,6 @@ export const PARAMETERS_DEFINITION: { [key in ParameterName]: ParameterDefinitio
label: i18n.translate('xpack.idxMgmt.mappingsEditor.priorityFieldLabel', {
defaultMessage: 'Priority',
}),
helpText: i18n.translate('xpack.idxMgmt.mappingsEditor.parameters.priorityHelpTextDescription', {
defaultMessage: 'The priority of the field.',
}),
formatters: [toInt],
validations: [
{
Expand Down

0 comments on commit 5a2edd1

Please sign in to comment.