This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +144
-115
lines changed
Expand file tree Collapse file tree 3 files changed +144
-115
lines changed Original file line number Diff line number Diff line change 231231 "@ant-design/colors" : " 6.0.0" ,
232232 "@ant-design/icons" : " 4.6.2" ,
233233 "@sentry/electron" : " 2.5.0" ,
234- "antd" : " 4.16.7 " ,
234+ "antd" : " 4.17.2 " ,
235235 "caniuse-lite" : " 1.0.30001214" ,
236236 "clsx" : " ^1.1.1" ,
237237 "date-fns" : " 2.20.1" ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default class TaskStore {
3535 }
3636
3737 set ( projectId : string , tasksInProject : TaskModel [ ] ) {
38- this . tasks [ projectId ] = observable . array ( tasksInProject ) ;
38+ this . tasks [ projectId ] = tasksInProject ;
3939 this . tasksService . save ( this . tasks ) ;
4040 }
4141
@@ -91,9 +91,9 @@ export default class TaskStore {
9191 add ( task : TaskModel ) {
9292 const { projectId } = task ;
9393 if ( ! Array . isArray ( this . tasks [ projectId ] ) ) {
94- this . tasks [ projectId ] = observable . array ( ) ; // TODO this.set()
94+ this . tasks [ projectId ] = [ ] ;
9595 }
96- this . tasks [ projectId ] . push ( task ) ;
96+ this . tasks [ projectId ] = [ ... this . tasks [ projectId ] , task ] ;
9797 this . updateVersion ( ) ;
9898 this . tasksService . save ( this . tasks ) ;
9999 GaService . event ( EEventCategory . Tasks , ETasksEvents . Create ) ;
You can’t perform that action at this time.
0 commit comments