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

fix: no hash if keyValue is empty

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