Hi, is there a way to detect getContentProperty failure? I am using getContentProperty inside a Promise and I want to reject the Promise when getContentProperty fails.
const customFunction = () => new Promise((resolve, reject) => {
AP.confluence.getContentProperty(key, contentProperty => {
// ...do other things
});
});
setContentProperty
has result.error to indicate failure but there is no equivalent for getContentProperty