chore: check compatibility ux

This commit is contained in:
jialin
2025-03-31 16:21:40 +08:00
parent bd6c689d91
commit f83e49bd3d
30 changed files with 1192 additions and 583 deletions
+2 -2
View File
@@ -213,7 +213,7 @@ const ModelCard: React.FC<{
};
const getModelCardData = async () => {
if (!props.selectedModel.name) {
if (!props.selectedModel?.name) {
setModelData(null);
setReadmeText(null);
handleOnCollapse(null);
@@ -292,7 +292,7 @@ const ModelCard: React.FC<{
useEffect(() => {
getModelCardData();
}, [props.selectedModel.name]);
}, [props.selectedModel?.name]);
useEffect(() => {
return () => {