From ebb2eea28ffa5c98974ddab0b4d5aed8182a018c Mon Sep 17 00:00:00 2001 From: Raphael Schweikert Date: Tue, 4 Feb 2025 18:04:42 +0100 Subject: [PATCH 1/2] fix: make sure .parcel-cache also gets cleaned --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 9cd65aa..494adb0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -57,6 +57,12 @@ tasks { javadoc { options.encoding = "UTF-8" } + + clean { + doLast { + layout.projectDirectory.dir(".parcel-cache").asFile.deleteRecursively() + } + } } java { From 4be1ed2204a08fbea8322c283db29ec364247050 Mon Sep 17 00:00:00 2001 From: Raphael Schweikert Date: Tue, 4 Feb 2025 18:12:56 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix(editor):=20ensure=20empty=20args=20don?= =?UTF-8?q?=E2=80=99t=20get=20submitted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #31 --- src/main/frontend/sections/RunControls.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/frontend/sections/RunControls.tsx b/src/main/frontend/sections/RunControls.tsx index 5065836..3c54216 100644 --- a/src/main/frontend/sections/RunControls.tsx +++ b/src/main/frontend/sections/RunControls.tsx @@ -20,11 +20,12 @@ export const RunControls: FC<{ runWith: (data: FormData) => Promise }> = ( async function run(e: FormEvent) { e.preventDefault(); const data = new FormData(formRef.current!); - data.forEach((val, key) => { + for (const key of Array.from(data.keys())) { + const val = data.get(key); if (!val || (val instanceof File && !val.name)) { data.delete(key); } - }); + } data.append('_script', JSON.stringify(script)); await runWith(data);