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

Commit 53d38d3

Browse files
committed
fix-next: get properly project data from {N} CLI
1 parent 34d3a2e commit 53d38d3

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
@@ -12,7 +12,7 @@ function getProjectData(projectDir) {
1212
}
1313

1414
const projectDataService = cli.projectDataService;
15-
const projectData = safeGet(cli, "getProjectData", projectDir);
15+
const projectData = safeGet(projectDataService, "getProjectData", projectDir);
1616

1717
return projectData;
1818
}
@@ -28,7 +28,7 @@ function getNsCli() {
2828
return cli;
2929
}
3030

31-
function safeGet(object, property, args = []) {
31+
function safeGet(object, property, ...args) {
3232
if (!object) {
3333
return;
3434
}

0 commit comments

Comments
 (0)