From 2a56e70f93d5a4de6ae23521cc4e9de449fe4e51 Mon Sep 17 00:00:00 2001 From: Alexander Goryushkin Date: Sat, 20 Jan 2024 12:17:03 -0300 Subject: [PATCH] change ?? operator to || node v12 on server doesn't support (??) operator --- src/aframe-streetmix-parsers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aframe-streetmix-parsers.js b/src/aframe-streetmix-parsers.js index d93ab964a..03b383cd5 100644 --- a/src/aframe-streetmix-parsers.js +++ b/src/aframe-streetmix-parsers.js @@ -241,7 +241,7 @@ function createSidewalkClonedVariants (segmentWidthInMeters, density, elevationP } if (animated) { - const speed = charSpeed[variantName] ?? 1.4; + const speed = charSpeed[variantName] || 1.4; addLinearStreetAnimation(placedObjectEl, speed, streetLength, xVal, yVal, zVal, animationDirection); } else { // solution for pause animation-mixer animation from donmccurdy