Skip to content

Commit 34c7638

Browse files
blackb1rdCopilot
authored andcommitted
Update web/src/components/TaskForm.vue
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fc8387e commit 34c7638

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/components/TaskForm.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ export default {
302302
},
303303
304304
deleteItem(name, index) {
305-
this.editedEnvironment[name].splice(index, 1);
305+
if (Array.isArray(this.editedEnvironment?.[name])) {
306+
this.editedEnvironment[name].splice(index, 1);
307+
}
306308
},
307309
308310
getTaskMessage(task) {

0 commit comments

Comments
 (0)