Skip to content

Commit 55ec6f1

Browse files
committed
fix order of blank row check
1 parent b712813 commit 55ec6f1

File tree

1 file changed

+1
-1
lines changed
  • packages/frontend/src/components/MultiRow

1 file changed

+1
-1
lines changed

packages/frontend/src/components/MultiRow/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function MultiRow(props: MultiRowProps): JSX.Element {
7272
<Controller
7373
name={name}
7474
control={control}
75-
defaultValue={!required ? [] : [{ ...newRowDefaultValue }]}
75+
defaultValue={required ? [{ ...newRowDefaultValue }] : []}
7676
render={({ field: { value: fallbackRows } }): JSX.Element => {
7777
// HACKFIX (ogp-weeloong): I don't know why `rows` lags behind
7878
// `fallbackRows` on the 1st render.

0 commit comments

Comments
 (0)