fix monitor display for less than 3 players

This commit is contained in:
ducklet 2021-03-06 20:58:12 +01:00
parent 8fad6d64df
commit 0d2bd78580

View file

@ -184,7 +184,7 @@ function setup_ws() {
},
}) => {
if (action === "monitor" && Array.isArray(args.targets)) {
monitored = args.targets
monitored = args.targets.filter(Boolean)
redraw_clients(clients, monitored)
} else if (action === "text" && args.text !== undefined) {
if (args.text.length) {