Skip to content

Commit

Permalink
Fix/w 13959789/clean request after selected changed (#39)
Browse files Browse the repository at this point in the history
* chore: clean request after selected change

* 0.3.7
  • Loading branch information
alexpmule authored Oct 10, 2023
1 parent f4c2eb5 commit 025e58c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@api-components/api-request",
"description": "A set of composite components that are used to build an HTTP request editor with the support of the AMF model.",
"version": "0.3.6",
"version": "0.3.7",
"license": "Apache-2.0",
"main": "index.js",
"module": "index.js",
Expand Down
1 change: 1 addition & 0 deletions src/ApiRequestEditorElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ export class ApiRequestEditorElement extends AmfHelperMixin(
}

_selectedChanged() {
this.clearRequest()
const { amf, selected } = this;
if (!amf || !selected) {
return;
Expand Down

0 comments on commit 025e58c

Please sign in to comment.