File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,10 @@ const routes = [
2727 name : 'BuildFeed' ,
2828 component : ( ) => import ( 'pages/BuildFeed.vue' ) ,
2929 beforeEnter ( to , from , next ) {
30- store . dispatch ( 'users/loadUsersList' ) . then ( next ( ) ) . catch ( next ( ) )
31- store
32- . dispatch ( 'platforms/loadPlatformList' )
33- . then ( next ( ) )
34- . catch ( next ( ) )
30+ Promise . all ( [
31+ store . dispatch ( 'users/loadUsersList' ) ,
32+ store . dispatch ( 'platforms/loadPlatformList' ) ,
33+ ] ) . finally ( next )
3534 } ,
3635 children : [
3736 {
@@ -98,10 +97,7 @@ const routes = [
9897 path : 'errata' ,
9998 component : ( ) => import ( 'pages/ErrataFeed.vue' ) ,
10099 beforeEnter ( to , from , next ) {
101- store
102- . dispatch ( 'platforms/loadPlatformList' )
103- . then ( next ( ) )
104- . catch ( next ( ) )
100+ store . dispatch ( 'platforms/loadPlatformList' ) . then ( next )
105101 } ,
106102 } ,
107103 {
You can’t perform that action at this time.
0 commit comments