Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix a potential crash
  • Loading branch information
intitni committed Oct 6, 2024
commit a3dfb3fef7d347863e9c35ce3c721d2849d15e23
7 changes: 4 additions & 3 deletions Tool/Sources/ChatTab/ChatTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ open class BaseChatTab {

public init(store: StoreOf<ChatTabItem>) {
chatTabStore = store
self.id = store.id
self.title = store.title


Task { @MainActor in
self.id = store.id
self.title = store.title

storeObserver.observe { [weak self] in
guard let self else { return }
self.title = store.title
Expand Down