Issue Summary
When editing macros in Page Edit mode, the macro editor doesn't open with the below error in browser console logs:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'metadataList')
at i (blocklist.ts:115:41)
at v (index.ts:252:34)
at index.ts:365:62
Steps to Reproduce
- Add team calendars to the page
- Add another macro that uses the legacy macro configuration dialog
- Publish the page
- Now go from View -> Edit mode and try to edit the 2nd macro.
Expected Results
The macro editor should open.
Actual Results
Nothing happens but we see the below error being reported in Browser console logs:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'metadataList')
at i (blocklist.ts:115:41)
at v (index.ts:252:34)
at index.ts:365:62
The below exception is seen in the log file:
com.atlassian.confluence.plugins.confluence-inline-tasks:inline-tasks-macro-browser.js?assetVersion=1000.0.0-b2c29440e6ba&externals=__local-default__&locale=en-US:1 TypeError: Cannot read properties of undefined (reading 'setMacroJsOverride')
at com.atlassian.confluence.plugins.confluence-inline-tasks:inline-tasks-macro-browser.js?assetVersion=1000.0.0-b2c29440e6ba&externals=__local-default__&locale=en-US:10:140
Workaround
1. Reload the page in edit mode and now try to edit the macro. You should be able to open the macro editor.
2. Remove the team calendar from the page and publish the page.