Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/SOF-6552 #24

Merged
merged 2 commits into from
May 15, 2023
Merged

chore/SOF-6552 #24

merged 2 commits into from
May 15, 2023

Conversation

azech-hqs
Copy link
Contributor

This PR concerns increasing the stability of the web-app during startup if default application data has changed.

src/tree.js Outdated
@@ -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];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, maybe add a debug log statement to catch this event?

@timurbazhirov timurbazhirov merged commit ea9c83c into main May 15, 2023
4 checks passed
@timurbazhirov timurbazhirov deleted the chore/SOF-6552 branch May 15, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants