fix 500 error when trying to test newly added script

This commit is contained in:
wh1te909
2021-08-31 06:16:40 +00:00
parent 94a3a82e46
commit d65fa796e4

View File

@@ -150,7 +150,7 @@ export default {
// script form logic
const script = props.script
? ref(Object.assign({}, props.script))
: ref({ shell: "powershell", default_timeout: 90 });
: ref({ shell: "powershell", default_timeout: 90, args: [] });
if (props.clone) script.value.name = `(Copy) ${script.value.name}`;
const code = ref("");