[release] v0.12.0-unstable48
This commit is contained in:
parent
9ec6784b26
commit
dccb7533a2
|
@ -81,7 +81,7 @@ const EditSourcesModal = ({ onSave }) => {
|
|||
validate: (values) => {
|
||||
const errors = {};
|
||||
|
||||
values.sources.forEach((source, index) => {
|
||||
values.sources && values.sources.forEach((source, index) => {
|
||||
if (source.Name === '') {
|
||||
errors[`sources.${index}.Name`] = 'Name is required';
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ const EditSourcesModal = ({ onSave }) => {
|
|||
<form onSubmit={formik.handleSubmit}>
|
||||
<DialogContent>
|
||||
<Stack spacing={2}>
|
||||
{formik.values.sources
|
||||
{formik.values.sources && formik.values.sources
|
||||
.map((action, index) => {
|
||||
return !action.removed && <>
|
||||
<Stack spacing={0} key={index}>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.12.0-unstable47",
|
||||
"version": "0.12.0-unstable48",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
Loading…
Reference in a new issue