Skip to content

Commit

Permalink
Merge pull request #1391 from LitchiJun11292/schema-err
Browse files Browse the repository at this point in the history
schema.properties 传入为空报错问题
  • Loading branch information
lhbxs authored Sep 21, 2023
2 parents 26f7f1b + c7a990c commit 50724cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form-render/src/derivative/SearchForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const SearchForm: <RecordType extends object = any>(
/** 当设置collapsed,超出隐藏 */
const properties = useMemo(() => {
const properties = {};
Object.keys(schema.properties).forEach((key, index) => {
Object.keys(schema.properties || {}).forEach((key, index) => {
const item = { ...(schema.properties[key] || {}) };
if (
(limitHeight && isColumn && index > column - 1) ||
Expand Down

1 comment on commit 50724cf

@vercel
Copy link

@vercel vercel bot commented on 50724cf Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

x-render – ./

x-render-tw93.vercel.app
xrender.fun
x-render-git-master-tw93.vercel.app
www.xrender.fun

Please sign in to comment.