We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f0ff06 + 22c82db commit 4fe495cCopy full SHA for 4fe495c
src/components/pages/HomePage.ts
@@ -31,7 +31,7 @@ export class HomePage extends Page {
31
this.#services = services;
32
}
33
34
- public getRows(id: string): [ServiceRow] | [ServiceRow, ServiceGroupRow] {
+ public getRows(id: string): [] | [ServiceRow] | [ServiceRow, ServiceGroupRow] {
35
for (const row of this.rows) {
36
if (row.service.id === id) {
37
return [row];
@@ -45,7 +45,7 @@ export class HomePage extends Page {
45
46
47
48
- throw new Error(`Could not find row for service ${id}`);
+ return [];
49
50
51
public override async connectedCallback() {
0 commit comments