We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe98a1 commit 167b252Copy full SHA for 167b252
apps/builder/src/features/forge/components/zodLayouts/ZodObjectLayout.tsx
@@ -116,7 +116,8 @@ export const ZodObjectLayout = ({
116
117
const getObjectKeysWithSameAccordionAttr = (accordion: string, shape: any) =>
118
Object.keys(shape).reduce<string[]>((keys, currentKey) => {
119
- const l = shape[currentKey]._def.layout as
+ const innerSchema = getZodInnerSchema(shape[currentKey]);
120
+ const l = innerSchema._def.layout as
121
| ZodLayoutMetadata<ZodTypeAny>
122
| undefined;
123
return !l?.accordion || l.accordion !== accordion
0 commit comments