forked from mirrors/thatmattlove-hyperglass
fix error handling for IPv6 only CNAME responses
This commit is contained in:
parent
3a86174eeb
commit
fee998f168
1 changed files with 3 additions and 2 deletions
|
|
@ -60,8 +60,9 @@ const ResolvedTarget = React.forwardRef(
|
|||
};
|
||||
|
||||
const findAnswer = data => {
|
||||
return data?.Answer?.filter(answerData => answerData.type === data.Question[0].type)[0]
|
||||
.data;
|
||||
return data?.Answer?.filter(
|
||||
answerData => answerData.type === data?.Question[0]?.type
|
||||
)[0]?.data;
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue