File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -155,20 +155,21 @@ export const parseSchemaHiddenType = (hiddenSchema: HiddenType): MetaHiddenType
155
155
if ( ! hiddenSchema ) {
156
156
return null
157
157
}
158
- if ( typeof hiddenSchema === 'string' ) {
158
+ const clone = structuredClone ( hiddenSchema )
159
+ if ( typeof clone === 'string' ) {
159
160
return {
160
161
value : false ,
161
- path : conformPathToPointers ( hiddenSchema ) ,
162
+ path : conformPathToPointers ( clone ) ,
162
163
}
163
164
}
164
- if ( 'condition' in hiddenSchema ) {
165
+ if ( 'condition' in clone ) {
165
166
return {
166
- value : hiddenSchema . condition ,
167
- path : conformPathToPointers ( hiddenSchema . value ) ,
167
+ value : clone . condition ,
168
+ path : conformPathToPointers ( clone . value ) ,
168
169
}
169
170
}
170
171
return {
171
- ...hiddenSchema ,
172
- path : conformPathToPointers ( hiddenSchema . path ) ,
172
+ ...clone ,
173
+ path : conformPathToPointers ( clone . path ) ,
173
174
}
174
175
}
You can’t perform that action at this time.
0 commit comments