From dfe29258846ec5de8a134584fe7411d24e253a73 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Mon, 8 Apr 2024 10:43:14 +0100 Subject: [PATCH] Fix project importing Had been broken by the examples form validation Signed-off-by: William Vinnicombe --- web/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/main.js b/web/main.js index 1e7b5ee..684b3cd 100644 --- a/web/main.js +++ b/web/main.js @@ -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,