Avoid annoying crash with hotreload

This commit is contained in:
Johannes Zellner
2025-10-07 14:27:46 +02:00
parent 0458fee326
commit b38371400c
+2
View File
@@ -172,6 +172,8 @@ const view = useTemplateRef('view');
const itemWidth = ref('unset');
function setItemWidth() {
if (!view.value) return;
const width = view.value.offsetWidth;
const gap = 20; // flexbox gap value