chore: update deps and add TypeScript null safety checks

This commit is contained in:
2026-01-04 06:44:41 +00:00
parent d786a7463b
commit 619fcdb9ae
26 changed files with 3232 additions and 1581 deletions

View File

@@ -136,8 +136,15 @@ export function useWebSocket() {
const channels = [...appStore.channels]
const channelIndex = channels.findIndex(c => c.id === channelId)
if (channelIndex !== -1) {
channels[channelIndex] = { ...channels[channelIndex], name: data.name }
appStore.setChannels(channels)
const existingChannel = channels[channelIndex]
if (existingChannel) {
channels[channelIndex] = {
id: existingChannel.id,
name: data.name,
created_at: existingChannel.created_at
}
appStore.setChannels(channels)
}
}
}