Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
fix: add optional chaining to support level
Browse files Browse the repository at this point in the history
  • Loading branch information
tabathadelane committed Jan 12, 2023
1 parent db1dfd7 commit 5deb8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/preview/parseHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const parseQuickstartFiles = (quickstartFiles) => {
quickstartContent.installPlans = parsedInstallPlans;
quickstartContent.keywords = loadYaml?.keywords ?? ['Placeholder keyword'];
quickstartContent.level =
loadYaml?.level.replace(' ', '_').toUpperCase() ?? 'COMMUNITY';
loadYaml?.level?.replace(' ', '_').toUpperCase() ?? 'COMMUNITY';
quickstartContent.name = loadYaml?.slug ?? '';
quickstartContent.packUrl = packUrl ?? '';
quickstartContent.relatedResources = []; // we don't get these from the config.yml
Expand Down

0 comments on commit 5deb8b0

Please sign in to comment.