|
|
|
@ -240,6 +240,12 @@ const Models: React.FC<ModelsProps> = ({
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (dataSource?.length) {
|
|
|
|
|
handleToggleExpandAll(true)
|
|
|
|
|
}
|
|
|
|
|
}, [dataSource]);
|
|
|
|
|
|
|
|
|
|
const setCurrentData = (data: ListItem) => {
|
|
|
|
|
currentData.current = data;
|
|
|
|
|
};
|
|
|
|
@ -279,7 +285,7 @@ const Models: React.FC<ModelsProps> = ({
|
|
|
|
|
handleSearch();
|
|
|
|
|
}, 150);
|
|
|
|
|
restoreScrollHeight();
|
|
|
|
|
} catch (error) {}
|
|
|
|
|
} catch (error) { }
|
|
|
|
|
},
|
|
|
|
|
[handleSearch]
|
|
|
|
|
);
|
|
|
|
@ -315,7 +321,7 @@ const Models: React.FC<ModelsProps> = ({
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
handleSearch?.();
|
|
|
|
|
}, 150);
|
|
|
|
|
} catch (error) {}
|
|
|
|
|
} catch (error) { }
|
|
|
|
|
},
|
|
|
|
|
[openDeployModal]
|
|
|
|
|
);
|
|
|
|
@ -526,7 +532,7 @@ const Models: React.FC<ModelsProps> = ({
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const renderChildren = useCallback(
|
|
|
|
|
(list: any, options: { parent?: any; [key: string]: any }) => {
|
|
|
|
|
(list: any, options: { parent?: any;[key: string]: any }) => {
|
|
|
|
|
return (
|
|
|
|
|
<Instances
|
|
|
|
|
list={list}
|
|
|
|
|