mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +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(() => {
|
||||
if (expanded && similarQuestions?.length === 0) {
|
||||
if (expanded && similarQuestions?.length === 0 && queryId) {
|
||||
initData();
|
||||
}
|
||||
}, [expanded]);
|
||||
}, [expanded, queryId]);
|
||||
|
||||
const onToggleExpanded = () => {
|
||||
setExpanded(!expanded);
|
||||
|
||||
Reference in New Issue
Block a user