mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Fixed plugin updates
This commit is contained in:
parent
d7e9ebc8a4
commit
a541375f7f
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ export const HomePage = () => {
|
||||||
pluginsSocket!.on('results:search', (data: {
|
pluginsSocket!.on('results:search', (data: {
|
||||||
results: PluginDef[]
|
results: PluginDef[]
|
||||||
}) => {
|
}) => {
|
||||||
if (Array.isArray(data.results) && data.results.length === 0) {
|
if (Array.isArray(data.results) && data.results.length > 0) {
|
||||||
setPlugins(data.results)
|
setPlugins(data.results)
|
||||||
} else {
|
} else {
|
||||||
useStore.getState().setToastState({
|
useStore.getState().setToastState({
|
||||||
|
|
Loading…
Reference in a new issue