Enhancement: support 'nice name' for beszel system ID (#4495)

This commit is contained in:
shamoon 2024-12-26 11:07:33 -08:00 committed by GitHub
parent fd05ae377c
commit f717e59085
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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` };
}