FIX: Allow quick access panels to load even if topic is invalid (#72)

FIX: Allow quick access panels to load even if topic is invalid (#72)

The waitForPendingTitles promise is intended to resolve once async decryption work is done. We still want it to resolve successfully even if the decryption failed, so that the UI continues to display.

diff --git a/assets/javascripts/lib/discourse.js.es6 b/assets/javascripts/lib/discourse.js.es6
index 90fb058..422f910 100644
--- a/assets/javascripts/lib/discourse.js.es6
+++ b/assets/javascripts/lib/discourse.js.es6
@@ -269,7 +269,7 @@ export function waitForPendingTitles() {
   return Promise.all(
     Object.values(topicTitles)
       .filter((t) => !t.result)
-      .map((t) => t.promise)
+      .map((t) => t.promise.catch(() => null))
   );
 }
 

GitHub sha: c216e571

1 Like

This commit appears in #72 which was merged by davidtaylorhq.