From da6ea146d35f3cfb58a53889a65f03f13d446005 Mon Sep 17 00:00:00 2001 From: Elvis Souza Date: Thu, 4 Apr 2019 03:11:09 -0300 Subject: [PATCH] #82 make sure value column will not break the table (#116) --- app/src/components/RecordTable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/RecordTable.js b/app/src/components/RecordTable.js index 5e150b7d5..05c48646b 100644 --- a/app/src/components/RecordTable.js +++ b/app/src/components/RecordTable.js @@ -110,7 +110,7 @@ export class RecordTable extends React.Component { return {v.hostname} {v.type} - {v.type === 'A' && {this.formatIp(v.ip)}} + {(!v.type || v.type === 'A') && {this.formatIp(v.ip)}} {v.type === 'CNAME' && {v.target}} {v.ttl} @@ -131,7 +131,7 @@ export class RecordTable extends React.Component { - {v.type === 'A' && + {(v.type === 'A' || !v.type) && this.handleIpChange(e, v)} value={this.formatIp(v.ip)}/>