Fix no way to unassign instances in Web UI

This commit is contained in:
Hornwitser committed 2023-02-15 20:31:02 +01:00
1 parent 2d8b35291d
commit 082d07d718
3 files changed
+14 -1

No files matched your search

@@ -16,6 +16,9 @@ export default function InstanceList(props) {
let [slaveList] = useSlaveList();
function slaveName(slaveId) {
if (slaveId === null) {
return "";
}
let slave = slaveList.find(s => s.id === slaveId);
if (slave) {
return slave.name;