FIX: `this.loading` is undefined, it should be `state.loading` (#12707)

FIX: this.loading is undefined, it should be state.loading (#12707)

This might prevent issues with double requests on the user notifications panel.

diff --git a/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js b/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js
index e866925..795a96e 100644
--- a/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js
+++ b/app/assets/javascripts/discourse/app/widgets/quick-access-panel.js
@@ -79,7 +79,7 @@ export default createWidget("quick-access-panel", {
   },
 
   refreshNotifications(state) {
-    if (this.loading) {
+    if (state.loading) {
       return;
     }
 

GitHub sha: e459937f

1 Like

This commit appears in #12707 which was approved by CvX. It was merged by eviltrout.