fix: playground stop null
This commit is contained in:
@@ -105,6 +105,7 @@ const MessageList: React.FC<MessageProps> = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const submitMessage = async () => {
|
const submitMessage = async () => {
|
||||||
|
if (!parameters.model) return;
|
||||||
try {
|
try {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setMessageId();
|
setMessageId();
|
||||||
|
|||||||
@@ -265,8 +265,12 @@ const ParamsSettings: React.FC<ParamsSettingsProps> = ({
|
|||||||
<Form.Item<ParamsSettingsFormProps>
|
<Form.Item<ParamsSettingsFormProps>
|
||||||
name="stop"
|
name="stop"
|
||||||
rules={[{ required: false }]}
|
rules={[{ required: false }]}
|
||||||
|
normalize={(value) => {
|
||||||
|
return value || null;
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<SealInput.Input
|
<SealInput.Input
|
||||||
|
allowClear
|
||||||
label="Stop Sequence"
|
label="Stop Sequence"
|
||||||
description={intl.formatMessage({
|
description={intl.formatMessage({
|
||||||
id: 'playground.params.stop.tips'
|
id: 'playground.params.stop.tips'
|
||||||
|
|||||||
Reference in New Issue
Block a user