Problem/Motivation

While using the View plugin, on Drupal 10.1, after enabling and then disabling the "Show arrows" option, I get this error:

Uncaught SyntaxError: Expected double-quoted property name in JSON at position 328
    at JSON.parse (<anonymous>)
    at gliderjs.config.js?ryr6wc:32:30


Steps to reproduce

Proposed resolution

TBC

Issue fork gliderjs-3378680

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

elgandoz created an issue. See original summary.

elgandoz’s picture

Issue summary: View changes
elgandoz’s picture

Issue summary: View changes
StatusFileSize
new78.31 KB

The issue is caused by a malformed JSON if the arrow option is left out:

elgandoz’s picture

Actually the same problems happens with "Show dots"...

elgandoz’s picture

Status: Active » Needs work

elgandoz’s picture

GitLab is playing funny today. And I made a mess:

  1. MR!26 - 3378680-json-malformed: this is the good one
  2. MR!25 - arrow-json-malformed: Initial draft but GitLab doesn't let me close it
  3. branch 3378680-js-error-when: automatically created but it is not appearing in my fork

Please review.

elgandoz’s picture

Status: Needs work » Needs review
Related issues: +#3271306: Breakpoints config settings causing JS error

adriancid made their first commit to this issue’s fork.

adriancid’s picture

Status: Needs review » Fixed

Thanks

adriancid’s picture

Status: Fixed » Reviewed & tested by the community

Well the pipeline is failing, no idea why but I can't merge.

elgandoz’s picture

.

adriancid’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.