mirror of
https://dev.azure.com/tstanciu94/ReverseProxy/_git/ReverseProxy_Frontend
synced 2022-12-28 18:12:07 +02:00
AdvancedSettingsComponent small fix
This commit is contained in:
parent
3d247e903d
commit
d871b01436
@ -4,7 +4,11 @@ import ExceptionsCard from "../exceptions/ExceptionsCard";
|
||||
import ChangePointsCard from "../changePoints/ChangePointsCard";
|
||||
|
||||
const AdvancedSettingsComponent = ({ data }) => {
|
||||
const spaceBetweenCards = data && data.exceptions && data.changePoints;
|
||||
const spaceBetweenCards =
|
||||
data &&
|
||||
data.exceptions &&
|
||||
data.changePoints &&
|
||||
data.changePoints.length > 0;
|
||||
return (
|
||||
<>
|
||||
{data && data.exceptions && (
|
||||
@ -12,7 +16,7 @@ const AdvancedSettingsComponent = ({ data }) => {
|
||||
)}
|
||||
{spaceBetweenCards && <br />}
|
||||
|
||||
{data && data.changePoints && (
|
||||
{data && data.changePoints && data.changePoints.length > 0 && (
|
||||
<ChangePointsCard changePoints={data.changePoints} />
|
||||
)}
|
||||
</>
|
||||
|
Loading…
x
Reference in New Issue
Block a user