Skip to content

Commit

Permalink
[Synthetics] fix local params in add monitor and edit monitor (#150602)
Browse files Browse the repository at this point in the history
Resolves #150599
Resolves #150597
  • Loading branch information
dominiqueclarke authored Feb 9, 2023
1 parent 61bd0c8 commit 876b3f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,9 @@ export const FIELD = (readOnly?: boolean): FieldMap => ({
label: i18n.translate('xpack.synthetics.monitorConfig.params.label', {
defaultMessage: 'Parameters',
}),
controlled: true,
component: JSONEditor,
props: ({ setValue }): JSONCodeEditorProps => ({
props: (): JSONCodeEditorProps => ({
id: 'syntheticsMonitorConfigParams',
height: '100px',
ariaLabel: i18n.translate('xpack.synthetics.monitorConfig.paramsAria.label', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const FORM_CONFIG = (readOnly: boolean): FieldConfig => ({
FIELD(readOnly)[AlertConfigKey.STATUS_ENABLED],
],
step3: [FIELD(readOnly)['source.inline'], FIELD(readOnly)[ConfigKey.PARAMS]],
scriptEdit: [FIELD(readOnly)['source.inline']],
scriptEdit: [FIELD(readOnly)['source.inline'], FIELD(readOnly)[ConfigKey.PARAMS]],
advanced: [
{
...DEFAULT_DATA_OPTIONS(readOnly),
Expand Down

0 comments on commit 876b3f5

Please sign in to comment.