mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Enhancement: support 'nice name' for beszel system ID (#4495)
This commit is contained in:
parent
fd05ae377c
commit
f717e59085
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export default function Component({ service }) {
|
|||
if (systems && !systems.items) {
|
||||
finalError = { message: "No items returned from beszel API" };
|
||||
} else if (systems && systems.items && systemId) {
|
||||
system = systems.items.find((item) => item.id === systemId);
|
||||
system = systems.items.find((item) => item.id === systemId || item.name === systemId);
|
||||
if (!system) {
|
||||
finalError = { message: `System with id ${systemId} not found` };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue