We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67cfb8 commit ba363f2Copy full SHA for ba363f2
src/ApiUrl.js
@@ -191,15 +191,15 @@ export class ApiUrl extends AmfHelperMixin(LitElement) {
191
}
192
193
_getPathTemplate() {
194
- if (this.isNotHttp) {
+ if (this.isNotHttp && !!this._method) {
195
return html`<div class="url-channel-value"><span class="channel-url">Channel</span>${this.path}</div>`;
196
197
return undefined;
198
199
200
getUrlTemplate() {
201
- const { url, isNotHttp } = this;
202
- if (isNotHttp) {
+ const { url, isNotHttp, _method } = this;
+ if (isNotHttp && !!_method) {
203
return html`<div class="url-server-value"><span class="server-url">Server</span>${url}</div>`
204
205
return html`${url}`
0 commit comments