fix(web): keep Inbox out of project channels

This commit is contained in:
2026-07-22 15:44:41 +08:00
parent d576ad02c1
commit fecff65975
3 changed files with 9 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ export function mapWorkspace(payload: ProjectWorkspaceDTO, index = 0): ProjectWo
return {
project,
channels: payload.channels.map(mapChannel),
channels: payload.channels.filter((channel) => channel.type !== 'inbox').map(mapChannel),
tags: payload.tags.map((tag) => tag.name),
recentSessions: payload.recentSessions.map(mapAISession),
inbox: payload.inbox.map(mapInbox),