Avoid annoying crash with hotreload
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user