Copy link to clipboard
Copied
Hi,
I've got an error message when I put a callback with SAVE_API type.
Error message:
ViewSDKInterface.js:1 Uncaught TypeError: Cannot read property 'then' of undefined
at CallbackService._handleCallbackMessage (ViewSDKInterface.js:1)
at ViewSDKInterface.js:1
at Array.forEach (<anonymous>)
at MessagingService._receiveMessageHelper (ViewSDKInterface.js:1)
My code:
Copy link to clipboard
Copied
Hi, SAVE_API callback function needs to return a Promise. We will update our documentation for making it more apparent.
Copy link to clipboard
Copied
Hi.
Thanks for the tip it works great