Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-216

No check if content exists when accessing "content['@path']"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0
    • None
    • None
    • None

      We should ensure that everywhere in the frontend helpers packages that context exists before accessing "content['@path']" e.g. https://git.magnolia-cms.com/projects/MODULES/repos/frontend-helpers/browse/packages/angular-editor/projects/angular-editor/src/lib/area/editable-area.component.ts#85

      It results in JS errors in the consoles of trying to access a property of "undefined".

      Can we ensure that we have all null validations in place (e.g. optional chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining)?

        Acceptance criteria

              rdhar Rishab Dhar
              bstaryga Bartosz Staryga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD