Skip to content

Commit 1288d5c

Browse files
committed
selectedProject not definned fix
1 parent b17251d commit 1288d5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/action.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ async function editConfigurations() {
288288
}
289289

290290
async function getProjectPath(projectName) {
291+
292+
let selectedProject;
291293
if (settings.projects.length === 0) {
292294
console.error("No projects to get path :(");
293295
console.warn(`cd /till/project/directory/ and run ${color.boldYellow('pm add')} to add projects and get started`);
@@ -304,9 +306,9 @@ async function getProjectPath(projectName) {
304306
onRender:() => {
305307
process.stderr.write('\033c');
306308
}
307-
}
309+
};
308310

309-
const {selectedProject} = await prompts([question],{onCancel})
311+
({selectedProject} = await prompts([question],{onCancel}));
310312
if (!selectedProject) {
311313
console.error(`Project does not exist. Add it using ${color.yellow('pm add [projectPath]')} or cd till the project folder and type ${color.yellow('pm add')}`);
312314
return;

0 commit comments

Comments
 (0)