about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
Diffstat (limited to 'src/state')
-rw-r--r--src/state/models/discovery/foafs.ts16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/state/models/discovery/foafs.ts b/src/state/models/discovery/foafs.ts
index 8dac2ec2d..f6e3157b7 100644
--- a/src/state/models/discovery/foafs.ts
+++ b/src/state/models/discovery/foafs.ts
@@ -57,15 +57,19 @@ export class FoafsModel {
       }
 
       // grab 10 of the users followed by the user
-      this.sources = sampleSize(
-        Object.keys(this.rootStore.me.follows.followDidToRecordMap),
-        10,
-      )
+      runInAction(() => {
+        this.sources = sampleSize(
+          Object.keys(this.rootStore.me.follows.followDidToRecordMap),
+          10,
+        )
+      })
       if (this.sources.length === 0) {
         return
       }
-      this.foafs.clear()
-      this.popular.length = 0
+      runInAction(() => {
+        this.foafs.clear()
+        this.popular.length = 0
+      })
 
       // fetch their profiles
       const profiles = await this.rootStore.agent.getProfiles({