Bugfix: Run the selected problem's code when teams Test in VSCode (#6)
It was previously always picking the first problem from the list (with a non-zero id).
This commit is contained in:
parent
1583452a8a
commit
f81f4124b4
@ -143,7 +143,7 @@ export class BWPanel {
|
|||||||
vscode.window.showErrorMessage('Already Running');
|
vscode.window.showErrorMessage('Already Running');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const problem = this.problemData.find((p) => (p.id = problemId));
|
const problem = this.problemData.find((p) => (p.id === problemId));
|
||||||
if (problem === undefined) {
|
if (problem === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user