Skip to content

Commit

Permalink
#82 make sure value column will not break the table (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo authored Apr 4, 2019
1 parent dea1b63 commit da6ea14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/components/RecordTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class RecordTable extends React.Component {
return <tr key={k}>
<td>{v.hostname}</td>
<td className="text-center">{v.type}</td>
{v.type === 'A' && <td>{this.formatIp(v.ip)}</td>}
{(!v.type || v.type === 'A') && <td>{this.formatIp(v.ip)}</td>}
{v.type === 'CNAME' && <td>{v.target}</td>}
<td className="text-right">{v.ttl}</td>
<td className="text-right records-actions">
Expand All @@ -131,7 +131,7 @@ export class RecordTable extends React.Component {
<option value="CNAME">CNAME</option>
</select>
</td>
{v.type === 'A' &&
{(v.type === 'A' || !v.type) &&
<td>
<input className="form-control" name="ip" type="text" onChange={(e) => this.handleIpChange(e, v)} value={this.formatIp(v.ip)}/>
</td>
Expand Down

0 comments on commit da6ea14

Please sign in to comment.