update model provider list after plugin installed

This commit is contained in:
JzoNg
2024-11-20 11:49:20 +08:00
parent 788f9de843
commit 386ee7b07b
3 changed files with 14 additions and 10 deletions

View File

@ -222,7 +222,7 @@ const ModelProviderPage = ({ searchText }: Props) => {
{!collapse && !isPluginsLoading && (
<div className='grid grid-cols-2 gap-2'>
{plugins.map(plugin => (
<ProviderCard key={plugin.plugin_id} payload={plugin} onSuccess={updateModelProviders} />
<ProviderCard key={plugin.plugin_id} payload={plugin} />
))}
</div>
)}