Skip to content

Commit

Permalink
fixed null chip element display in chip table
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAccords committed Jun 4, 2018
1 parent 7b7d612 commit f9c38ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/views/containers/SingleFolder/ChipTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ const ChipTable = ({chips}) => {
<tbody>
{
chips.map((chip) => {
return (<tr>
return (
<tr key={chip.id}>
<td>{chip.chip_number}</td>
<td>{chip.original_name}</td>
<td>{chip.element}</td>
<td>{chip.element || 'null'}</td>
<td>{chip.damage}</td>
<td>{chip.code}</td>
<td>{chip.memory}</td>
Expand Down
1 change: 1 addition & 0 deletions client/src/views/containers/SingleFolder/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class SingleFolder extends React.Component {
</div>
</section>
<div className="container single-folder-container">
<h2 className='title'>Chips</h2>
<ChipTable chips = {child_chips}/>
</div>
</Fragment>
Expand Down

0 comments on commit f9c38ca

Please sign in to comment.