about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-07 08:59:32 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-04-07 08:59:32 -0500
commitb84533090ddc2712b44e8b53ecf1fd4049771489 (patch)
tree224b04e8e526985e6ff015cc33c22ed6e06d7952
parent15478a8f0cddfeef0f9a33cf9bbde9e8dee62438 (diff)
downloadvoidsky-b84533090ddc2712b44e8b53ecf1fd4049771489.tar.zst
Small fix: run in action
-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(() => {