Skip to content

Commit

Permalink
fix: read forest type from f attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Mar 16, 2020
1 parent b61ac94 commit da6a4e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Ecogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Ecogram() {
strokeWidth="2"
/>
{ecogram &&
ecogram.map(({ x, y, w, h, m }) => {
ecogram.map(({ x, y, w, h, f }) => {
return (
<>
<rect
Expand All @@ -38,15 +38,15 @@ function Ecogram() {
fill="#b0cdeb"
stroke="#365bb7"
strokeWidth="2"
onClick={() => console.log(m)}
onClick={() => console.log(f)}
/>
<text
x={x + w / 2}
y={y + h / 2 + 10}
fontSize="2em"
textAnchor="middle"
>
{m.join(' ')}
{f.join(' ')}
</text>
</>
);
Expand Down

0 comments on commit da6a4e4

Please sign in to comment.