Skip to content

Commit

Permalink
Merge pull request #35 from swisscom/bugfix/31
Browse files Browse the repository at this point in the history
Bugfix/31
  • Loading branch information
SgiobairOg authored Feb 4, 2025
2 parents e9b2cce + 4be1ed2 commit 2c6fbb5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ tasks {
javadoc {
options.encoding = "UTF-8"
}

clean {
doLast {
layout.projectDirectory.dir(".parcel-cache").asFile.deleteRecursively()
}
}
}

java {
Expand Down
5 changes: 3 additions & 2 deletions src/main/frontend/sections/RunControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ export const RunControls: FC<{ runWith: (data: FormData) => Promise<void> }> = (
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);
Expand Down

0 comments on commit 2c6fbb5

Please sign in to comment.