mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Fix no way to unassign instances in Web UI
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user