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`,
placeholder: "Value",
required: true,
required: false,
type: "text"
}
]}

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

Loading…
Cancel
Save