mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
fix: #713
This commit is contained in:
parent
1c3cb1b21b
commit
799ad61dcc
@ -37,7 +37,7 @@ const AccessFormTelegramBotConfig = ({ form: formInst, formName, disabled, initi
|
||||
.nullish()
|
||||
.refine((v) => {
|
||||
if (v == null || v + "" === "") return true;
|
||||
return /^\d+$/.test(v + "") && +v! > 0;
|
||||
return !Number.isNaN(+v!) && +v! !== 0;
|
||||
}, t("access.form.telegram_bot_default_chat_id.placeholder"))
|
||||
)
|
||||
.nullish(),
|
||||
@ -72,7 +72,7 @@ const AccessFormTelegramBotConfig = ({ form: formInst, formName, disabled, initi
|
||||
rules={[formRule]}
|
||||
tooltip={<span dangerouslySetInnerHTML={{ __html: t("access.form.telegram_bot_default_chat_id.tooltip") }}></span>}
|
||||
>
|
||||
<Input type="number" allowClear placeholder={t("access.form.telegram_bot_default_chat_id.placeholder")} />
|
||||
<Input allowClear placeholder={t("access.form.telegram_bot_default_chat_id.placeholder")} />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
);
|
||||
|
@ -37,7 +37,7 @@ const NotifyNodeConfigFormTelegramBotConfig = ({
|
||||
.nullish()
|
||||
.refine((v) => {
|
||||
if (v == null || v + "" === "") return true;
|
||||
return /^\d+$/.test(v + "") && +v! > 0;
|
||||
return !Number.isNaN(+v!) && +v! !== 0;
|
||||
}, t("workflow_node.notify.form.telegram_bot_chat_id.placeholder"))
|
||||
)
|
||||
.nullish(),
|
||||
@ -63,7 +63,7 @@ const NotifyNodeConfigFormTelegramBotConfig = ({
|
||||
rules={[formRule]}
|
||||
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.notify.form.telegram_bot_chat_id.tooltip") }}></span>}
|
||||
>
|
||||
<Input type="number" allowClear placeholder={t("workflow_node.notify.form.telegram_bot_chat_id.placeholder")} />
|
||||
<Input allowClear placeholder={t("workflow_node.notify.form.telegram_bot_chat_id.placeholder")} />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user