required check for array type

This commit is contained in:
codetypes committed 2024-09-28 20:29:29 +08:00
1 parent 085dd49f75
commit 1898315095
1 file changed
+4
+4
View File
@@ -550,6 +550,10 @@ const NodeInspector: FC = () => {
}
valuePropName={type === "boolean" ? "checked" : undefined}
rules={[
{
required,
message: t("node.fileRequired", { field: arg.desc }),
},
() => ({
validator(_, value) {
if (type === "json") {