fix: clarify channel test results

This commit is contained in:
CaIon
2026-06-18 11:59:17 +08:00
parent a95655a245
commit a37ce3d6b5
9 changed files with 103 additions and 12 deletions
@@ -94,9 +94,13 @@ export function DataTableRowActions({ row }: DataTableRowActionsProps) {
e.stopPropagation()
setIsTesting(true)
try {
await handleTestChannel(channel.id, undefined, () => {
queryClient.invalidateQueries({ queryKey: channelsQueryKeys.lists() })
})
await handleTestChannel(
channel.id,
{ channelName: channel.name },
() => {
queryClient.invalidateQueries({ queryKey: channelsQueryKeys.lists() })
}
)
} finally {
setIsTesting(false)
}