mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 04:27:39 +00:00
(fix)(chat-sdk) fix invalid request path when parse failed (#908)
This commit is contained in:
@@ -34,10 +34,10 @@ const SimilarQuestions: React.FC<Props> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (expanded && similarQuestions?.length === 0) {
|
if (expanded && similarQuestions?.length === 0 && queryId) {
|
||||||
initData();
|
initData();
|
||||||
}
|
}
|
||||||
}, [expanded]);
|
}, [expanded, queryId]);
|
||||||
|
|
||||||
const onToggleExpanded = () => {
|
const onToggleExpanded = () => {
|
||||||
setExpanded(!expanded);
|
setExpanded(!expanded);
|
||||||
|
|||||||
Reference in New Issue
Block a user