File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7810,8 +7810,8 @@ var QueryBuilder = /** @class */ (function () {
78107810 var returnValue = { } ;
78117811 Object . keys ( data ) . forEach ( function ( key ) {
78127812 var value = data [ key ] ;
7813- // Ignore IDs and connections
7814- if ( ! relations . has ( key ) && key !== 'id' ) {
7813+ // Ignore IDs and connections and empty fields
7814+ if ( ! relations . has ( key ) && key !== 'id' && value !== null ) {
78157815 returnValue [ key ] = value ;
78167816 }
78177817 } ) ;
Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ export default class QueryBuilder {
139139 Object . keys ( data ) . forEach ( ( key ) => {
140140 const value = data [ key ] ;
141141
142- // Ignore IDs and connections
143- if ( ! relations . has ( key ) && key !== 'id' ) {
142+ // Ignore IDs and connections and empty fields
143+ if ( ! relations . has ( key ) && key !== 'id' && value !== null ) {
144144 returnValue [ key ] = value ;
145145 }
146146 } ) ;
You can’t perform that action at this time.
0 commit comments