feat(code/run-javascript): omit empty key entries

This commit is contained in:
Ali BARIN
2024-08-01 09:50:09 +00:00
parent 4f6727810b
commit 4b1e66add3

View File

@@ -52,7 +52,9 @@ export default defineAction({
const objectifiedInput = {};
for (const input of inputs) {
objectifiedInput[input.key] = input.value;
if (input.key) {
objectifiedInput[input.key] = input.value;
}
}
const ivm = (await import('isolated-vm')).default;