Skip to content

Commit f29f7aa

Browse files
committed
Fix undefined bug when selecting collection in first column
1 parent d7634c4 commit f29f7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/CollectionsColumn.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ async function handleItemSelected(uuid: string): Promise<void> {
194194
return;
195195
}
196196
197-
const isAlreadyActiveInEditPane: boolean = uuid === activeCollection.value.collection.data.uuid;
197+
const isAlreadyActiveInEditPane: boolean = uuid === activeCollection.value?.collection.data.uuid;
198198
199199
// Nothing happens, return
200200
if (isAlreadyActiveInEditPane) {

0 commit comments

Comments
 (0)