Problem
Getting the following error in console log:
Uncaught SyntaxError: Unexpected token , in JSON at position 471
Happens on this line, when loading up the config for the slider instance:
const options = JSON.parse(settings.gliderjs[el.id]);
Empty or lack of default values on the breakpoint settings seem to be the root cause of this.
Steps to reproduce
- Setup field with the gliderjs field formatter.
- Save settings on field formatter, without entering in any values for the breakpoints.
- View slider and inspect console log for js error.
Proposed resolution
Set default values or possibly don't save breakpoint settings unless being explicitly used?
Comments
Comment #2
geoanders commentedComment #3
geoanders commentedComment #4
geoanders commentedComment #5
slydevil commentedComment #7
adriancid