We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5026dd + 5a300c8 commit 1ec11ebCopy full SHA for 1ec11eb
src/classes/Entity.ts
@@ -801,7 +801,7 @@ class Entity<
801
&& (!mapping.link || (mapping.link && mapping.save === true))
802
) {
803
// If a number or a set and adding
804
- if (['number','set'].includes(mapping.type) && data[field].$add) {
+ if (['number','set'].includes(mapping.type) && (data[field].$add !== undefined && data[field].$add !== null)) {
805
ADD.push(`#${field} :${field}`)
806
values[`:${field}`] = validateType(mapping,field,data[field].$add)
807
// Add field to names
0 commit comments