Commit 350db91 1 parent 8e3ce7d commit 350db91 Copy full SHA for 350db91
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ class Plugins {
56
56
async init ( ) {
57
57
this . registerBuiltin ( ) ;
58
58
59
- const plugins = await getPluginsStatus ( ) . catch ( ( ) => [ ] ) ;
59
+ // Note: The /install stage does not allow access to the getPluginsStatus api, so an initial value needs to be given
60
+ const plugins = ( await getPluginsStatus ( ) . catch ( ( ) => [ ] ) ) || [ ] ;
60
61
this . registeredPlugins = plugins . filter ( ( p ) => p . enabled ) ;
61
62
await this . registerPlugins ( ) ;
62
63
}
@@ -169,6 +170,7 @@ const validateRoutePlugin = async (slugName) => {
169
170
170
171
const mergeRoutePlugins = async ( routes ) => {
171
172
const routePlugins = await getRoutePlugins ( ) ;
173
+ console . log ( 'routePlugins' , routePlugins ) ;
172
174
if ( routePlugins . length === 0 ) {
173
175
return routes ;
174
176
}
You can’t perform that action at this time.
0 commit comments