Version 1.0.1 - Modification Carousel
All checks were successful
Frontend Deployment / deploy-frontend (push) Successful in 33s

This commit is contained in:
2025-08-29 23:32:17 +02:00
parent 807f784ca5
commit 8636571eac
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "chopin-frontend", "name": "chopin-frontend",
"version": "1.0.0", "version": "1.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite --host --port 8080", "dev": "vite --host --port 8080",

View File

@@ -136,10 +136,12 @@ function updateSlots() {
} }
} }
allSlots.value.forEach((slot, index) => { allSlots.value.forEach((slot, index) => {
if(slot.props.mobile == undefined) return; if(typeof slot.props?.mobile !== 'undefined') {
if (slot.props.mobile == '' && (window.innerWidth > 769 && window.innerHeight > 607)) { if (slot.props.mobile == '' && (window.innerWidth > 769 && window.innerHeight > 607)) {
allSlots.value.splice(index, 1); allSlots.value.splice(index, 1);
} }
}
}); });
} }
} }