Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] remove <img> from field name when show in tooltip (#2350)

Igor Dykhta56afb092c8f7
diff --git a/src/components/src/map/layer-hover-info.tsx b/src/components/src/map/layer-hover-info.tsx
index fcabd0333..d769517f1 100644
--- a/src/components/src/map/layer-hover-info.tsx
+++ b/src/components/src/map/layer-hover-info.tsx
@@ -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} />