[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Feature request
[ ] Documentation issue or request
Failure Information (for bugs)
Error resolveStatics(...).then is not a function is thrown in the revision.controller.js (line 23) when content-element/util.js handleStatics doesn't return a promise.
For example:
function handleStatics(element, defaultHandler, generalHandler) {
return element;
}
Steps to Reproduce
To reproduce this error create a custom content element or edit the existing one by adding util.js file with custom handleStatics handler
Edit handleStatics function to return non-promise value (for example: return element;)
Create newly added (or edited) content element inside activity
Edit content element a few times
Go to the history page and choose revision related to your content element
By this point, you should receive a blank history screen and the error described above
I'm submitting a...
Failure Information (for bugs)
Error
resolveStatics(...).then is not a function
is thrown in therevision.controller.js
(line 23) when content-element/util.js handleStatics doesn't return a promise.For example:
Steps to Reproduce
util.js
file with customhandleStatics
handlerhandleStatics
function to return non-promise value (for example:return element;
)history
page and choose revision related to your content element