Skip to content

Commit fa65a89

Browse files
committed
fix: add value dependency to useEffect in FlexLayout component
1 parent 70c5921 commit fa65a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/amis-editor/src/renderer/style-control/FlexLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function FlexLayouts({
8080
setCurrentLayout(value);
8181
}
8282
}
83-
}, []);
83+
}, [value]);
8484

8585
const flexDirection = data.style?.flexDirection || 'row';
8686

0 commit comments

Comments
 (0)