Skip to content

Commit 8b33363

Browse files
fixed
1 parent 271ff16 commit 8b33363

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/ui/layouts/stackComponents/Stacks/List/getHeaderCols.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ export const GetHeaderCols = ({
153153
width: '15%',
154154
renderRow: (stackComponent: TStack) => (
155155
<FlexBox alignItems="center" style={{ marginLeft: '-24px' }}>
156-
<div data-tip data-for={stackComponent.flavor.name} style={{ margin: ' 0 auto 0 auto' }}>
156+
<div
157+
data-tip
158+
data-for={stackComponent?.flavor?.name || stackComponent?.flavor}
159+
style={{ margin: ' 0 auto 0 auto' }}
160+
>
157161
<img
158162
alt={stackComponent.flavor.logoUrl}
159163
src={stackComponent.flavor.logoUrl}
@@ -165,7 +169,11 @@ export const GetHeaderCols = ({
165169
</div>
166170

167171
<ReactTooltip
168-
id={stackComponent.flavor.name}
172+
id={
173+
// stackComponent?.flavor
174+
// ? stackComponent?.flavor
175+
stackComponent?.flavor?.name || stackComponent?.flavor
176+
}
169177
place="top"
170178
effect="solid"
171179
>
@@ -195,8 +203,12 @@ export const GetHeaderCols = ({
195203
),
196204
width: '15%',
197205
renderRow: (stackComponent: TStack) => (
198-
<FlexBox alignItems="center" style={{ marginLeft: '-24px' }}>
199-
<div data-tip data-for={stackComponent.isShared} style={{ margin: '0 auto 0 auto' }}>
206+
<FlexBox alignItems="center" style={{ marginLeft: '-24px' }}>
207+
<div
208+
data-tip
209+
data-for={stackComponent.isShared}
210+
style={{ margin: '0 auto 0 auto' }}
211+
>
200212
<Box>
201213
<FlexBox
202214
justifyContent="center"

0 commit comments

Comments
 (0)