diff --git a/web/screens/HubScreen2/components/ListModel.tsx b/web/screens/HubScreen2/components/ListModel.tsx index 038302ac81..cf7b21b791 100644 --- a/web/screens/HubScreen2/components/ListModel.tsx +++ b/web/screens/HubScreen2/components/ListModel.tsx @@ -73,9 +73,12 @@ const ListModel: React.FC = ({ modelHandle, onBranchSelected }) => { useEffect(() => { if (engineSelections.length === 0) return setEngineFilter(engineSelections[0].value as EngineType) + }, [engineSelections]) + + useEffect(() => { const models = modelBranches.map((m) => m.name) onBranchSelected?.(models) - }, [engineSelections, modelBranches, onBranchSelected]) + }, [modelBranches, onBranchSelected]) const onSelectionChanged = useCallback( (selectionValue: string) => {