File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,13 @@ class Field {
8787 : fieldObj . uid ;
8888 const path = schemaPath . split ( "." ) ;
8989 let value = event . data
90- console . log ( "value-->updateFields PRE" , value ) ;
90+
9191 path . forEach ( ( key ) => {
9292 if ( value ) {
93- value = Object . create ( value [ key ] as GenericObjectType )
94- console . log ( "value-->updateFields IF" , value ) ;
93+ value = Object . assign ( { } , value [ key ] ) ;
9594 }
9695 } ) ;
9796
98- console . log ( "value-->updateFields POST" , value ) ;
99-
10097 if ( fieldObj . _data !== value ) {
10198 fieldObj . _data = value ;
10299 }
Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ class FieldModifierLocationField {
9191 : fieldObj . uid ;
9292 const path = schemaPath . split ( "." ) ;
9393 let value = event . data
94-
94+
9595 path . forEach ( ( key ) => {
9696 if ( value ) {
97- value = Object . create ( value [ key ] as GenericObjectType ) ;
97+ value = Object . assign ( { } , value [ key ] ) ;
9898 }
9999 } ) ;
100100
You can’t perform that action at this time.
0 commit comments