Skip to content

Commit cbc83ed

Browse files
committed
Fix add task to specific project bug
1 parent 31aec19 commit cbc83ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class UserDataModel extends Listener {
4444
this._tasks.push(newTask);
4545

4646
//logic to push to project array as well
47-
if (projectState == 'inbox') {
47+
if (projectState !== 'inbox') {
4848
for (let i = 0; i < this._projects.length; i++) {
4949
if (projectState === this._projects[i].id) {
5050
this._projects[i].tasks = newTask;

0 commit comments

Comments
 (0)