Skip to content

Commit c09f70b

Browse files
authored
removed duplicated call to /apis for the API list widget (#1703)
1 parent 136cd9a commit c09f70b

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

src/components/apis/list-of-apis/ko/runtime/api-list-dropdown.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export class ApiListDropdown {
5858

5959
@OnMounted()
6060
public async initialize(): Promise<void> {
61-
await this.resetSearch();
6261
await this.checkSelection();
6362

6463
this.pattern

src/components/apis/list-of-apis/ko/runtime/api-list-tiles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export class ApiListTiles {
6262
this.groupByTag(this.defaultGroupByTagToEnabled());
6363
this.tags.subscribe(this.resetSearch);
6464

65-
await this.resetSearch();
66-
6765
this.pattern
6866
.extend({ rateLimit: { timeout: Constants.defaultInputDelayMs, method: "notifyWhenChangesStop" } })
6967
.subscribe(this.resetSearch);

src/components/apis/list-of-apis/ko/runtime/api-list.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export class ApiList {
6262
this.groupByTag(this.defaultGroupByTagToEnabled());
6363
this.tags.subscribe(this.resetSearch);
6464

65-
await this.resetSearch();
66-
6765
this.pattern
6866
.extend({ rateLimit: { timeout: Constants.defaultInputDelayMs, method: "notifyWhenChangesStop" } })
6967
.subscribe(this.resetSearch);

src/components/tag-input/tag-input.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export class TagInput {
6565
const tagsValue = this.routeHelper.getTags();
6666

6767
if (!tagsValue) {
68+
this.onChange([]);
6869
return;
6970
}
7071

0 commit comments

Comments
 (0)