Skip to content

Commit 24af55a

Browse files
authored
feat(collection): allow hidden property in editor without redefine validation (#3661)
1 parent bb78812 commit 24af55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/schema/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function property<T extends ContentStandardSchemaV1>(input: T): Property<
3131
}
3232
}
3333

34-
attachContent(input)
34+
attachContent(input || {})
3535

3636
const createProxy = (target: unknown): Property<T> =>
3737
new Proxy(target as object, {

0 commit comments

Comments
 (0)