about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state/models/content/post-thread.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state/models/content/post-thread.ts b/src/state/models/content/post-thread.ts
index 031b82438..6a4323e48 100644
--- a/src/state/models/content/post-thread.ts
+++ b/src/state/models/content/post-thread.ts
@@ -297,7 +297,9 @@ export class PostThreadModel {
       try {
         urip.host = await apilib.resolveName(this.rootStore, urip.host)
       } catch (e: any) {
-        this.error = e.toString()
+        runInAction(() => {
+          this.error = e.toString()
+        })
       }
     }
     runInAction(() => {