From b84533090ddc2712b44e8b53ecf1fd4049771489 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 7 Apr 2023 08:59:32 -0500 Subject: [PATCH] Small fix: run in action --- src/state/models/content/post-thread.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state/models/content/post-thread.ts b/src/state/models/content/post-thread.ts index 031b8243..6a4323e4 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(() => {