diff --git a/src/pages/llmodels/components/table-list.tsx b/src/pages/llmodels/components/table-list.tsx index 2c7ba57a..1256ded2 100644 --- a/src/pages/llmodels/components/table-list.tsx +++ b/src/pages/llmodels/components/table-list.tsx @@ -240,6 +240,12 @@ const Models: React.FC = ({ }; }, []); + useEffect(() => { + if (dataSource?.length) { + handleToggleExpandAll(true) + } + }, [dataSource]); + const setCurrentData = (data: ListItem) => { currentData.current = data; }; @@ -279,7 +285,7 @@ const Models: React.FC = ({ handleSearch(); }, 150); restoreScrollHeight(); - } catch (error) {} + } catch (error) { } }, [handleSearch] ); @@ -315,7 +321,7 @@ const Models: React.FC = ({ setTimeout(() => { handleSearch?.(); }, 150); - } catch (error) {} + } catch (error) { } }, [openDeployModal] ); @@ -526,7 +532,7 @@ const Models: React.FC = ({ ); const renderChildren = useCallback( - (list: any, options: { parent?: any; [key: string]: any }) => { + (list: any, options: { parent?: any;[key: string]: any }) => { return (