Skip to content

Commit 75b2cc3

Browse files
cconard96trasher
authored andcommitted
fix kanban card state length check
1 parent 3843c10 commit 75b2cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/vue/Kanban/Kanban.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
refreshSortables();
466466
467467
// If there are no cards in the state for this column, force a state save
468-
if (state_for_col === undefined || state_for_col.cards.length === 0) {
468+
if ((state_for_col?.cards || []).length === 0) {
469469
saveState();
470470
}
471471
}

0 commit comments

Comments
 (0)