chore: remove unused code

This commit is contained in:
Fu Diwei
2024-12-31 20:05:48 +08:00
parent 6f088fd76a
commit 9c645a1efa
72 changed files with 98 additions and 6932 deletions

View File

@@ -7,10 +7,7 @@ const NotifyChannelEditFormWebhookFields = () => {
const { t } = useTranslation();
const formSchema = z.object({
url: z
.string({ message: t("settings.notification.channel.form.webhook_url.placeholder") })
.min(1, t("settings.notification.channel.form.webhook_url.placeholder"))
.url({ message: t("common.errmsg.url_invalid") }),
url: z.string({ message: t("settings.notification.channel.form.webhook_url.placeholder") }).url(t("common.errmsg.url_invalid")),
});
const formRule = createSchemaFieldRule(formSchema);