Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { FieldProps, IdSchema } from '@bfcomposer/react-jsonschema-form';
import formatMessage from 'format-message';
import { JSONSchema6 } from 'json-schema';

import { PromptFieldChangeHandler, GetSchema } from '../types';
import { CheckboxWidget } from '../../../widgets';
Expand All @@ -23,8 +22,6 @@ export const ChoiceInputSettings: React.FC<ChoiceInputSettingsProps> = props =>
updater({ ...formData.choiceOptions, [field]: data });
};

const recognizerOptionsSchema = getSchema('recognizerOptions');

return (
<>
<Choices
Expand All @@ -51,16 +48,6 @@ export const ChoiceInputSettings: React.FC<ChoiceInputSettingsProps> = props =>
formContext={formContext}
/>
</div>
<div css={field}>
<CheckboxWidget
onChange={data => onChange('recognizerOptions')({ noValue: data })}
schema={recognizerOptionsSchema.properties ? (recognizerOptionsSchema.properties.noValue as JSONSchema6) : {}}
id={idSchema.recognizerOptions && idSchema.recognizerOptions.__id}
value={formData.recognizerOptions}
label={formatMessage('Recognizer options: no value')}
formContext={formContext}
/>
</div>
</>
);
};