diff --git a/client/src/pages/market/sources.jsx b/client/src/pages/market/sources.jsx index de789de..773bb37 100644 --- a/client/src/pages/market/sources.jsx +++ b/client/src/pages/market/sources.jsx @@ -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 }) => {
- {formik.values.sources + {formik.values.sources && formik.values.sources .map((action, index) => { return !action.removed && <> diff --git a/package.json b/package.json index e0e7ee7..79a5c15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.12.0-unstable47", + "version": "0.12.0-unstable48", "description": "", "main": "test-server.js", "bugs": {