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 () {
7810
7810
var returnValue = { } ;
7811
7811
Object . keys ( data ) . forEach ( function ( key ) {
7812
7812
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 ) {
7815
7815
returnValue [ key ] = value ;
7816
7816
}
7817
7817
} ) ;
Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ export default class QueryBuilder {
139
139
Object . keys ( data ) . forEach ( ( key ) => {
140
140
const value = data [ key ] ;
141
141
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 ) {
144
144
returnValue [ key ] = value ;
145
145
}
146
146
} ) ;
You can’t perform that action at this time.
0 commit comments