mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Added proxy support for axios. (#6334)
This commit is contained in:
parent
15f36a1350
commit
0b80e256b4
3 changed files with 41 additions and 10 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue