feat(ui): new WorkflowNotifyNodeForm using antd
This commit is contained in:
@@ -88,7 +88,7 @@ const AccessEditFormSSHConfig = ({ form, formName, disabled, model, onModelChang
|
||||
|
||||
const handleKeyFileChange: UploadProps["onChange"] = async ({ file }) => {
|
||||
if (file && file.status !== "removed") {
|
||||
formInst.setFieldValue("key", (await readFileContent(file.originFileObj ?? (file as unknown as File))).trim());
|
||||
formInst.setFieldValue("key", await readFileContent(file.originFileObj ?? (file as unknown as File)));
|
||||
setKeyFileList([file]);
|
||||
} else {
|
||||
formInst.setFieldValue("key", "");
|
||||
|
||||
Reference in New Issue
Block a user