File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,13 @@ export class RemoteModuleInstance extends ModuleInstance<RemoteModule> {
327
327
328
328
export class LocalModuleInstance extends ModuleInstance < LocalModule > implements MixinLoader {
329
329
public async loadProviders ( ) {
330
- const vault = await fetchJson < _Vault > ( this . getRelPath ( "vault.json" ) ! ) ;
331
- const provider = vault . modules ;
330
+ const vault = await fetchJson < _Vault > ( this . getRelPath ( "vault.json" ) ! ) . catch ( ( ) => null ) ;
331
+ const provider = vault ? .modules ?? { } ;
332
332
333
- // TODO: revisit this check
334
- Object . keys ( provider ) . filter ( ( i ) => i . startsWith ( this . getModuleIdentifier ( ) ) ) . forEach ( async (
335
- identifier ,
336
- ) => this . module . newChild ( identifier , provider [ identifier ] ) ) ;
333
+ Object . keys ( provider )
334
+ // TODO: revisit this check
335
+ . filter ( ( i ) => i . startsWith ( this . getModuleIdentifier ( ) ) )
336
+ . forEach ( async ( identifier ) => this . module . newChild ( identifier , provider [ identifier ] ) ) ;
337
337
}
338
338
339
339
private _transformer = createTransformer ( this ) ;
You can’t perform that action at this time.
0 commit comments