(fix)(chat-sdk) fix invalid request path when parse failed (#908)

This commit is contained in:
williamhliu
2024-04-15 22:19:54 +08:00
committed by GitHub
parent bfbf9d2c8c
commit c9c75679f1

View File

@@ -34,10 +34,10 @@ const SimilarQuestions: React.FC<Props> = ({
};
useEffect(() => {
if (expanded && similarQuestions?.length === 0) {
if (expanded && similarQuestions?.length === 0 && queryId) {
initData();
}
}, [expanded]);
}, [expanded, queryId]);
const onToggleExpanded = () => {
setExpanded(!expanded);