feat: support overwriting the default config of notifiers

This commit is contained in:
Fu Diwei
2025-04-25 11:51:19 +08:00
parent 11b413d0dc
commit 3c2fbd720f
12 changed files with 288 additions and 25 deletions

View File

@@ -31,7 +31,7 @@ const AccessFormTelegramConfig = ({ form: formInst, formName, disabled, initialV
.max(256, t("common.errmsg.string_max", { max: 256 })),
defaultChatId: z
.preprocess(
(v) => Number(v),
(v) => (v == null || v === "" ? undefined : Number(v)),
z
.number()
.nullish()