Skip to content

Commit

Permalink
chore(core): use optional chaining for reading js plugin config (#8951)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wscats committed Feb 25, 2022
1 parent 6c4c6cd commit 40f0f3d
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -170,12 +170,7 @@ async function buildProjectGraphUsingContext(
}

function jsPluginConfig(nxJson: any) {
if (
nxJson &&
nxJson &&
nxJson?.pluginsConfig &&
nxJson?.pluginsConfig['@nrwl/js']
) {
if (nxJson?.pluginsConfig?.['@nrwl/js']) {
return nxJson?.pluginsConfig['@nrwl/js'];
} else {
return {};
Expand Down

0 comments on commit 40f0f3d

Please sign in to comment.