Skip to content

Commit

Permalink
chore: prevent TypeError in getApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
azech-hqs committed May 3, 2023
1 parent ccf4f34 commit 7084ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getApplication({ applicationsTree, name, version = null, build =
const app = applicationsTree[name];
// eslint-disable-next-line no-param-reassign
if (!version) version = app.defaultVersion;
return app[version][build];
return app[version]?.[build];
}

const { applicationsTree } = getAllApplications(null);
Expand Down

0 comments on commit 7084ec8

Please sign in to comment.