Skip to content
Snippets Groups Projects
Verified Commit 7550446c authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: no hash if keyValue is empty

parent 131c594e
No related branches found
No related tags found
No related merge requests found
...@@ -243,5 +243,9 @@ function createBracketedKeyValueHash(object, addHashPrefix = true) { ...@@ -243,5 +243,9 @@ function createBracketedKeyValueHash(object, addHashPrefix = true) {
} }
} }
return addHashPrefix ? "#" + hashString : hashString; if (hashString.length === 0) {
hashString = "#" + hashString;
}
return addHashPrefix ? hashString : hashString;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment