Handle leading double slash when displaying REST queries in navigation
This commit is contained in:
parent
e34895989b
commit
02725e08d2
|
@ -116,8 +116,8 @@ export function customQueryText(datasource, query) {
|
||||||
|
|
||||||
// Remove protocol
|
// Remove protocol
|
||||||
let name = query.name
|
let name = query.name
|
||||||
if (name.includes("://")) {
|
if (name.includes("//")) {
|
||||||
name = name.split("://")[1]
|
name = name.split("//")[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no path, return the full name
|
// If no path, return the full name
|
||||||
|
|
Loading…
Reference in New Issue