File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,18 @@ export const parseSchemaHiddenType = (hiddenSchema: HiddenType): MetaHiddenType
173
173
if ( typeof clone !== 'object' ) {
174
174
return structuredClone ( emptyMetaHiddenTypeInstance )
175
175
}
176
- if ( 'condition' in clone && 'value' in clone ) {
176
+ if (
177
+ Object . hasOwn ( clone , 'condition' ) &&
178
+ 'condition' in clone &&
179
+ Object . hasOwn ( clone , 'value' ) &&
180
+ 'value' in clone
181
+ ) {
177
182
return {
178
183
value : clone . condition ,
179
184
path : conformPathToPointers ( clone . value ) ,
180
185
}
181
186
}
182
- if ( 'value' in clone && 'path' in clone ) {
187
+ if ( Object . hasOwn ( clone , 'value' ) && 'value' in clone && Object . hasOwn ( clone , 'path' ) && 'path' in clone ) {
183
188
return {
184
189
value : clone . value ,
185
190
path : conformPathToPointers ( clone . path ) ,
You can’t perform that action at this time.
0 commit comments