fix: onnx can't be selected in download model modal (#3283)
Signed-off-by: James <namnh0122@gmail.com>
This commit is contained in:
parent
bad481bf05
commit
2521e1db51
@ -73,9 +73,12 @@ const ListModel: React.FC<Props> = ({ 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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user