Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7574

Fix error in the checkbox of the Cookies block

XMLWordPrintable

    • Block: Cookies

      The checkbox in the cookies block cannot be checked or unchecked as can be seen here: https://www-dev.greenpeace.org/gutenberg/pedro-test-page/

      When a user clicks on the checkbox the following error is shown in the browser console: "Uncaught ReferenceError: capabilities is not defined"

      By checking the code, it can be seen the "capabilities" variable is truly undefined and the corresponding error is ignored with "eslint-disable-next-line no-undef"

      If there's a reason to use the "capabilities" variable without a definition,  comments should be added to the file to document it properly.

            Unassigned Unassigned
            pfiguero Pedro Figueroa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: