mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 13:34:33 +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')
|
if (!res.ok) throw new Error('Failed to fetch comment')
|
||||||
return (await res.json()) as CommentInfo
|
return (await res.json()) as CommentInfo
|
||||||
},
|
},
|
||||||
enabled: isRunning,
|
enabled: !!teamId && isRunning,
|
||||||
refetchInterval: (query) => {
|
refetchInterval: (query) => {
|
||||||
const data = query.state.data as CommentInfo
|
const data = query.state.data as CommentInfo
|
||||||
if (data && (!data.message || !(data.message in AI_PLACEHOLDERS))) {
|
if (data && (!data.message || !(data.message in AI_PLACEHOLDERS))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user