From bf93f5a5dbfc4c72157fbf6735b73eba6762dc77 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 11 Jun 2021 16:07:14 -0400 Subject: [PATCH] refactor: add condition to render divider --- striker-ui/components/Resource/ResourceVolumes.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx index 25fe49ee..a7ee79b4 100644 --- a/striker-ui/components/Resource/ResourceVolumes.tsx +++ b/striker-ui/components/Resource/ResourceVolumes.tsx @@ -79,7 +79,7 @@ const ResourceVolumes = ({ {volume.connections.map( - (connection): JSX.Element => { + (connection, index): JSX.Element => { return ( <> - + {volume.connections.length - 1 !== index ? ( + + ) : null} ); },