Skip to content

Commit 84e935e

Browse files
committed
Fix that the initial value of chat tab id is not set
1 parent 21b27c8 commit 84e935e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,13 @@ struct ChatTabBar: View {
202202
)
203203

204204
} else {
205-
EmptyView()
205+
ChatTabBarButton(
206+
store: store,
207+
info: info,
208+
content: { Text("Not Found") },
209+
icon: { Image(systemName: "questionmark.diamond") },
210+
isSelected: info.id == selectedTabId
211+
)
206212
}
207213
}
208214
}
@@ -369,7 +375,7 @@ struct ChatTabContainer: View {
369375
anchor: .topLeading
370376
)
371377
} else {
372-
EmptyView()
378+
Text("404 Not Found")
373379
}
374380
}
375381
}

Tool/Sources/ChatTab/ChatTab.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ open class BaseChatTab {
6767

6868
public init(store: StoreOf<ChatTabItem>) {
6969
chatTabStore = store
70+
self.id = store.id
71+
self.title = store.title
7072

7173
Task { @MainActor in
7274
storeObserver.observe { [weak self] in

0 commit comments

Comments
 (0)