Skip to content

Commit

Permalink
[fix] remove <img> from field name when show in tooltip (#2350)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Oct 2, 2023
1 parent a9181f6 commit 56afb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/src/map/layer-hover-info.tsx
Expand Up @@ -82,7 +82,7 @@ const Row: React.FC<RowProps> = ({name, value, deltaValue, url}) => {
const asImg = /<img>/.test(name);
return (
<tr className="layer-hover-info__row" key={name}>
<td className="row__name">{name}</td>
<td className="row__name">{asImg ? name.replace('<img>', '') : name}</td>
<td className="row__value">
{asImg ? (
<img src={value} />
Expand Down

0 comments on commit 56afb09

Please sign in to comment.