feat(frontend): updated to mark `labels[i].value` as optional in network modals

pull/86/head
Samuel Rowe 3 years ago
parent d62e548c6f
commit 3a19164701

@ -26,7 +26,7 @@ const General = () => {
{ {
name: `labels[${index}].value`, name: `labels[${index}].value`,
placeholder: "Value", placeholder: "Value",
required: true, required: false,
type: "text" type: "text"
} }
]} ]}

@ -44,7 +44,7 @@ export const validationSchema = yup.object({
labels: yup.array( labels: yup.array(
yup.object({ yup.object({
key: yup.string().required("Key is required"), key: yup.string().required("Key is required"),
value: yup.string().required("Value is required") value: yup.string()
}) })
) )
}); });

Loading…
Cancel
Save