Skip to content

Commit a3dfb3f

Browse files
committed
Fix a potential crash
1 parent d373a8c commit a3dfb3f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Tool/Sources/ChatTab/ChatTab.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ open class BaseChatTab {
6767

6868
public init(store: StoreOf<ChatTabItem>) {
6969
chatTabStore = store
70-
self.id = store.id
71-
self.title = store.title
72-
70+
7371
Task { @MainActor in
72+
self.id = store.id
73+
self.title = store.title
74+
7475
storeObserver.observe { [weak self] in
7576
guard let self else { return }
7677
self.title = store.title

0 commit comments

Comments
 (0)