@forge/bridge
5.15.2-next.0-experimental-5b726e65.16.0-next.1
out/view/close.js~
out/view/close.jsModified+1
Index: package/out/view/close.js
===================================================================
--- package/out/view/close.js
+++ package/out/view/close.js
@@ -6,8 +6,9 @@
const callBridge = (0, bridge_1.getCallBridge)();
const close = async (payload) => {
try {
const success = await callBridge('close', payload);
+ // TODO: Modify @atlassian/forge-ui to throw if close fails instead of returning boolean DEVO-680
if (success === false) {
throw new errors_1.BridgeAPIError("this resource's view is not closable.");
}
}