mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 18:18:26 +00:00
fix message card
This commit is contained in:
@@ -63,7 +63,7 @@ export const MessageCard: React.FC<MessageCardProps> = ({
|
||||
if (!res.ok) throw new Error('Failed to fetch comment')
|
||||
return (await res.json()) as CommentInfo
|
||||
},
|
||||
enabled: isRunning,
|
||||
enabled: !!teamId && isRunning,
|
||||
refetchInterval: (query) => {
|
||||
const data = query.state.data as CommentInfo
|
||||
if (data && (!data.message || !(data.message in AI_PLACEHOLDERS))) {
|
||||
|
||||
Reference in New Issue
Block a user