Skip to content

Commit

Permalink
🐛 fix: 修正 thoughts 的语法报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Apr 10, 2021
1 parent 39d4b67 commit 5399d08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/journey-map/src/Thoughts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const Thoughts: FC = () => {
style={{ width: `${width}%`, ...margin, borderColor: color }}
>
<ul>
{thoughts.map((t, index) => (
<li key={index}>{t}</li>
))}
{thoughts?.map((t, index) =>
typeof t !== 'string' ? null : <li key={index}>{t}</li>,
)}
</ul>
</div>
);
Expand Down

0 comments on commit 5399d08

Please sign in to comment.