Skip to content

Commit

Permalink
Fix project importing
Browse files Browse the repository at this point in the history
Had been broken by the examples form validation

Signed-off-by: William Vinnicombe <[email protected]>
  • Loading branch information
will-v-pi committed Apr 8, 2024
1 parent b1da57b commit dfe2925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var isPicoWireless = false;

const createFromExampleBtn = document.getElementById('btn-create-from-example');
const isExampleMode = createFromExampleBtn ? createFromExampleBtn.getAttribute('data-example-mode') === 'true' : true;
if (isExampleMode && !isExampleSelected) {
if (isExampleMode && !isExampleSelected && !doProjectImport) {
console.error("example not selected");
vscode.postMessage({
command: CMD_ERROR,
Expand Down

0 comments on commit dfe2925

Please sign in to comment.