Added proxy support for axios. (#6334)

This commit is contained in:
SamTV12345 2024-04-16 19:11:05 +02:00 committed by GitHub
parent 15f36a1350
commit 0b80e256b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 10 deletions

View file

@ -100,7 +100,15 @@ export const HomePage = () => {
pluginsSocket!.on('results:search', (data: {
results: PluginDef[]
}) => {
setPlugins(data.results)
if (Array.isArray(data.results) && data.results.length === 0) {
setPlugins(data.results)
} else {
useStore.getState().setToastState({
open: true,
title: "Error retrieving plugins",
success: false
})
}
})