Skip to content

Commit b63bfec

Browse files
author
Alexandra Shubenko
committed
bug fixes
1 parent e51b462 commit b63bfec

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

vis/js/templates/modals/infomodal/subcomponents/StandardKMInfo.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const StandardKMInfo = ({
1515
params: {query, customTitle, repo_name, q_advanced},
1616
}) => {
1717
let queryString = queryConcatenator([query, q_advanced])
18-
customTitle = unescapeHTML(customTitle)
18+
19+
customTitle = customTitle && unescapeHTML(customTitle)
1920

2021
return (
2122
// html template starts here
@@ -29,7 +30,8 @@ const StandardKMInfo = ({
2930
This knowledge map presents you with a topical overview of research
3031
on{" "}
3132
<strong className="hs-strong">
32-
{(customTitle && true && customTitle !== "undefined") ? customTitle : queryString}
33+
{/*{(customTitle && true && customTitle !== "undefined") ? customTitle : queryString}*/}
34+
{customTitle ? customTitle : queryString}
3335
</strong>{" "}
3436
based on the 100{" "}
3537
<a

0 commit comments

Comments
 (0)