Macro browser sometimes fails to open when editing a macro with error `TypeError: Cannot read properties of undefined (reading 'metadataList')`

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Issue Summary

      When trying to edit “Content by Label” macros on Confluence pages nothing happens after clicking edit macro. The issue is only limited to the macros that use the macro configuration modal, and the error message is "Cannot read properties of undefined (reading 'metadata list')"

      Steps to Reproduce

      1. Create a few pages and add a label to it.
      2. Create a separate page and add  Content by Label macro and configure it to display the pages specified by the label and publish the page.
      3. Now Edit the page with Content by Label macro and try to edit the macro by clicking the Pencil icon.

      Expected Results

      • A configuration box should appear and we should able to edit the macro.

      Actual Results

      • In some cases, nothing happens after clicking the edit macro icon. Please note that this issue is occurring intermittently and may not be replicable.

      The below exception is thrown in the browser console log file:

      `TypeError: Cannot read properties of undefined (reading 'metadataList')` 

      Workaround

      Performing a hard refresh https://developer.chrome.com/blog/hard-reload resolves the issue, and the macro configuration box opens as expected.

            Assignee:
            Unassigned
            Reporter:
            Sumit Uniyal
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: