Handle leading double slash when displaying REST queries in navigation

This commit is contained in:
Andrew Kingston 2022-02-25 14:29:25 +00:00
parent e34895989b
commit 02725e08d2
1 changed files with 2 additions and 2 deletions

View File

@ -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