mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Add note
This commit is contained in:
parent
be8363cc35
commit
aaf4a3e92f
1 changed files with 1 additions and 0 deletions
|
@ -681,6 +681,7 @@ export function cleanServiceGroups(groups) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function findGroupByName(groups, name) {
|
export function findGroupByName(groups, name) {
|
||||||
|
// Deep search for a group by name. Using for loop allows for early return
|
||||||
for (let i = 0; i < groups.length; i += 1) {
|
for (let i = 0; i < groups.length; i += 1) {
|
||||||
const group = groups[i];
|
const group = groups[i];
|
||||||
if (group.name === name) {
|
if (group.name === name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue