Skip to content

Commit

Permalink
bug fix for missing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
MetaverseUnknower committed Oct 22, 2023
1 parent afd60fe commit 40f14eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export abstract class VLM {
return new Promise(async (resolve, reject) => {
onSceneReadyObservable.addOnce(async () => {
try {
if (config.modelFolder || config.soundFolder) {
configurePaths({ modelFolder: config.modelFolder, soundFolder: config.soundFolder })
if (config?.modelFolder || config?.soundFolder) {
configurePaths({ modelFolder: config?.modelFolder, soundFolder: config?.soundFolder })
}
VLMEventManager.events.addListener(VLMSceneInitEvent, null, () => {
resolve(VLM.storage);
Expand Down

0 comments on commit 40f14eb

Please sign in to comment.