File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
frontend/src/store/modules Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,13 @@ const actions = {
154154 } ,
155155
156156 getUserOrgs ( { commit } ) {
157- commit ( 'setUserOrgsLoading' , { userOrgsLoading : true } ) ;
158157 if ( state . userOrgs . length == 0 ) {
158+ commit ( 'setUserOrgsLoading' , { userOrgsLoading : true } ) ;
159159 ckanServ . getUserOrgList ( ) . then ( ( data ) => {
160160 commit ( 'setUserOrgList' , { orgList : data } ) ;
161+ commit ( 'setUserOrgsLoading' , { userOrgsLoading : false } ) ;
162+ } ) . catch ( ( e ) => {
163+ commit ( 'setUserOrgsLoading' , { userOrgsLoading : false } ) ;
161164 } ) ;
162165 }
163166 } ,
@@ -262,7 +265,6 @@ const mutations = {
262265 }
263266
264267 state . userOrgs = JSON . parse ( JSON . stringify ( userOrgs ) ) ;
265- state . userOrgsLoading = false ;
266268 } ,
267269
268270 setCurrentNotUnmod ( state , { group} ) {
You can’t perform that action at this time.
0 commit comments