Make description of activity optional
This commit is contained in:
@@ -22,9 +22,7 @@ class Form extends Component {
|
|||||||
|
|
||||||
isValid = () => {
|
isValid = () => {
|
||||||
const { changeset } = this.props
|
const { changeset } = this.props
|
||||||
return ["assignment_id", "task_id", "hours", "description"]
|
return ["assignment_id", "task_id", "hours"].map(prop => changeset[prop]).every(Boolean)
|
||||||
.map(prop => changeset[prop])
|
|
||||||
.every(Boolean)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleTextareaKeyDown = event => {
|
handleTextareaKeyDown = event => {
|
||||||
|
|||||||
Reference in New Issue
Block a user