Skip to content

Commit

Permalink
required check for array type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfq committed Sep 28, 2024
1 parent 085dd49 commit 1898315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/inspector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 1898315

Please sign in to comment.