Skip to content

Commit 1336bdd

Browse files
authored
Only access selected when workflow._ is not undefined. (baserow#4414)
1 parent 3996f93 commit 1336bdd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Fixed a potential crash while deleting a workflow.",
4+
"issue_origin": "github",
5+
"issue_number": 4293,
6+
"domain": "automation",
7+
"bullet_points": [],
8+
"created_at": "2025-12-10"
9+
}

web-frontend/modules/automation/store/automationWorkflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const actions = {
108108
)
109109
},
110110
async forceDelete({ commit }, { automation, workflow }) {
111-
if (workflow._.selected) {
111+
if (workflow._?.selected) {
112112
// Redirect back to the dashboard because the workflow doesn't exist anymore.
113113
await this.$router.push({ name: 'dashboard' })
114114
commit('UNSELECT')

0 commit comments

Comments
 (0)