Skip to content

Commit

Permalink
dont show error if variantString is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed Mar 22, 2024
1 parent 7868d77 commit 01a89d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ function processSegments (segments, showStriping, length, globalAnimated, showVe
var positionY = 0;

// get variantString
var variantList = segments[i].variantString.split('|');
var variantList = segments[i].variantString ? segments[i].variantString.split('|'): "";

// show warning message if segment or variantString are not supported
supportCheck(segments[i].type, segments[i].variantString);
Expand Down

0 comments on commit 01a89d1

Please sign in to comment.