Skip to content

Commit

Permalink
Hotfix: Update createUpdateObject
Browse files Browse the repository at this point in the history
Fix incorrect condition
  • Loading branch information
rutajdash committed Oct 19, 2021
1 parent 49b3963 commit 613f6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/createUpdateObject.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = (oldObject) => {
const _newObject = {};
for (const _key in oldObject) {
if (_key) {
if (oldObject[_key]) {
_newObject[_key] = oldObject[_key];
}
}
Expand Down

0 comments on commit 613f6b3

Please sign in to comment.