Browse Source

Fix checking for errors from Promise.allSettled.

Jason Grout 4 years ago
parent
commit
cde6220b38
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dev_mode/index.js
  2. 1 1
      examples/federated/core_package/index.js

+ 1 - 1
dev_mode/index.js

@@ -97,7 +97,7 @@ async function main() {
   }));
 
   extensions.forEach(p => {
-    if (p.status === "error") {
+    if (p.status === "rejected") {
       // There was an error loading the component
       console.error(p.reason);
       return;

+ 1 - 1
examples/federated/core_package/index.js

@@ -88,7 +88,7 @@ async function main() {
   }));
 
   extensions.forEach(p => {
-    if (p.status === "error") {
+    if (p.status === "rejected") {
       // There was an error loading the component
       console.error(p.reason);
       return;