Skip to content

Commit 8abd865

Browse files
authored
Fixed: error when loading operations grouped by tags without apiId (#2376)
1 parent b32da31 commit 8abd865

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/operations/operation-list/ko/runtime/operation-list.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ export class OperationList {
142142
}
143143

144144
public async loadOperations(): Promise<void> {
145-
146145
if (this.groupByTag()) {
147146
this.operationGroups([]);
148147
this.searchRequest = { pattern: this.pattern(), tags: this.tags(), grouping: "tag" };
@@ -194,6 +193,11 @@ export class OperationList {
194193
}
195194

196195
private async loadOfOperationsByTag(): Promise<void> {
196+
const apiName = this.selectedApiName();
197+
if (!apiName) {
198+
return;
199+
}
200+
197201
this.searchRequest.skip = (this.pageNumber() - 1) * Constants.defaultPageSize;
198202

199203
const pageOfOperationsByTag = await this.apiService.getOperationsByTags(this.selectedApiName(), this.searchRequest);
@@ -205,7 +209,6 @@ export class OperationList {
205209

206210
private async loadPageOfOperations(): Promise<void> {
207211
const apiName = this.selectedApiName();
208-
209212
if (!apiName) {
210213
return;
211214
}

0 commit comments

Comments
 (0)