Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 1dd2000

Browse files
committed
fix-next: get properly project data from {N} CLI
1 parent 3b885c7 commit 1dd2000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nsCliHelpers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const PROJECT_DATA_GETTERS = {
88
function getProjectData(projectDir) {
99
const cli = getNsCli();
1010
const projectDataService = cli.projectDataService;
11-
const projectData = safeGet(cli, "getProjectData", projectDir);
11+
const projectData = safeGet(projectDataService, "getProjectData", projectDir);
1212

1313
return projectData;
1414
}
@@ -20,7 +20,7 @@ function getNsCli() {
2020
return cli;
2121
}
2222

23-
function safeGet(object, property, args = []) {
23+
function safeGet(object, property, ...args) {
2424
if (!object) {
2525
return;
2626
}

0 commit comments

Comments
 (0)