refactor(ui): clean code

This commit is contained in:
Fu Diwei
2024-12-25 23:28:42 +08:00
parent 1184e52ba9
commit 4008c2bfd5
4 changed files with 26 additions and 44 deletions

View File

@@ -32,7 +32,7 @@ const NotifyChannel = ({ className, style, channel }: NotifyChannelProps) => {
await channelFormRef.current!.validateFields();
try {
setChannel(channel, channelFormRef.current!.getFieldsValue(true));
setChannel(channel, channelFormRef.current!.getFieldsValue());
setChannelFormChanged(false);
messageApi.success(t("common.text.operation_succeeded"));