Skip to content

Commit

Permalink
#2 change target property
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 10, 2020
1 parent 1d70cf8 commit 1907248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions js/components/projects/projectModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const ProjectModal = memo(({ history }) => {
type: '',
title: '',
description: '',
target: '',
targetId: '',
tags: ''
}}
validate={values => {
Expand All @@ -78,8 +78,8 @@ export const ProjectModal = memo(({ history }) => {
if (!values.description) {
errors.description = 'Required!';
}
if (values.target === '') {
errors.target = 'Required!';
if (values.targetId === '') {
errors.targetId = 'Required!';
}
if (values.type === '') {
errors.type = 'Type of Project is required!';
Expand Down Expand Up @@ -181,7 +181,7 @@ export const ProjectModal = memo(({ history }) => {
</InputLabel>
<Select
disabled={isProjectModalLoading}
name="target"
name="targetId"
inputProps={{
id: 'selected-target'
}}
Expand Down
2 changes: 1 addition & 1 deletion js/components/projects/redux/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const INITIAL_STATE = {
author: null,
title: null,
description: null,
target: null,
targetId: null,
tags: [],
type: null
},
Expand Down

0 comments on commit 1907248

Please sign in to comment.