File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ const store = createStore({
4848 } ) ;
4949 } ,
5050 getDashboardData ( { commit} ) {
51- commit ( 'startDashboardLoading ' , true )
51+ commit ( 'dashboardLoading ' , true )
5252 return axiosClient . get ( `/dashboard` )
5353 . then ( ( res ) => {
54- commit ( 'startDashboardLoading ' , false )
54+ commit ( 'dashboardLoading ' , false )
5555 commit ( 'setDashboardData' , res . data )
5656 return res ;
5757 } )
5858 . catch ( error => {
59- commit ( 'startDashboardLoading ' , false )
59+ commit ( 'dashboardLoading ' , false )
6060 return error ;
6161 } )
6262
@@ -140,7 +140,7 @@ const store = createStore({
140140 state . user . data = userData . user ;
141141 sessionStorage . setItem ( "TOKEN" , userData . token ) ;
142142 } ,
143- startDashboardLoading : ( state , loading ) => {
143+ dashboardLoading : ( state , loading ) => {
144144 state . dashboard . loading = loading ;
145145 } ,
146146 setDashboardData : ( state , data ) => {
You can’t perform that action at this time.
0 commit comments