From d424844ae3e3130af6aa117810705722851b8580 Mon Sep 17 00:00:00 2001 From: Ed Sungik Choi Date: Fri, 13 Dec 2024 15:08:09 +0900 Subject: [PATCH] fix: fixing incorrectly added expressions --- .../src/components/LegacyStack/LegacyStack/LegacyStack.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bezier-react/src/components/LegacyStack/LegacyStack/LegacyStack.tsx b/packages/bezier-react/src/components/LegacyStack/LegacyStack/LegacyStack.tsx index 0445122aa..250f2b160 100644 --- a/packages/bezier-react/src/components/LegacyStack/LegacyStack/LegacyStack.tsx +++ b/packages/bezier-react/src/components/LegacyStack/LegacyStack/LegacyStack.tsx @@ -85,7 +85,7 @@ export const LegacyStack = forwardRef( ...(element.props ?? {}), direction, marginBefore: - ((element.props as LegacyStackItemProps)?.marginBefore ?? 0) + + (element.props as LegacyStackItemProps)?.marginBefore ?? (index > firstValidElementIdx.current ? spacing : 0), } as LegacyStackItemProps) })}