parent
5d005cf5a7
commit
1bdf6c7955
@ -81,7 +81,8 @@ const PopupContainer: React.FC<Props> = ({ provider: _provider, resolve }) => {
|
|||||||
setLoading(true)
|
setLoading(true)
|
||||||
const models = await fetchModels(_provider)
|
const models = await fetchModels(_provider)
|
||||||
setListModels(
|
setListModels(
|
||||||
models.map((model) => ({
|
models
|
||||||
|
.map((model) => ({
|
||||||
id: model.id,
|
id: model.id,
|
||||||
// @ts-ignore name
|
// @ts-ignore name
|
||||||
name: model.name || model.id,
|
name: model.name || model.id,
|
||||||
@ -91,6 +92,7 @@ const PopupContainer: React.FC<Props> = ({ provider: _provider, resolve }) => {
|
|||||||
description: model?.description,
|
description: model?.description,
|
||||||
owned_by: model?.owned_by
|
owned_by: model?.owned_by
|
||||||
}))
|
}))
|
||||||
|
.filter((model) => !isEmpty(model.id))
|
||||||
)
|
)
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user