Skip to content

Commit 13cdded

Browse files
committed
fix(login-page): fix render children parameter issue.
1 parent a51e552 commit 13cdded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/Render.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ export type RenderChildren =
66
| { children?: React.ReactNode };
77

88
export const Render: FC<RenderChildren> = ({ children }) => {
9-
const { fields = {}, buttons = {}, extra = {}, blocks = {}, data } = useStore();
9+
const { fields = {}, buttons = {}, extra = {}, $$index = {}, blocks = {}, data } = useStore();
1010
const childs = typeof children === 'function' ? [] : Children.toArray(children);
1111
return (
1212
<Fragment>
13-
{typeof children === 'function' && !isValidElement(children) && children({ fields, buttons, blocks, extra }, { ...data })}
13+
{typeof children === 'function' && !isValidElement(children) && children({ fields, buttons, blocks, extra, $$index }, { ...data })}
1414
{typeof children !== 'function' && childs.map((child, key) => {
1515
if (!isValidElement(child)) return null;
1616
return cloneElement(child, {

0 commit comments

Comments
 (0)