Skip to content

Commit

Permalink
fix(copyFields): skip empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
wmakeev committed Jul 18, 2021
1 parent 8d105ae commit 0eef4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moysklad-helpers",
"version": "3.0.0-beta.3",
"version": "3.0.0-beta.4",
"description": "Вспомогательные функции для работы с библиотекой moysklad",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/getHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function getHelpers(ms: Instance) {

if (isEntityRef(curFieldVal)) {
res[fieldName] = ref(curFieldVal as EntityRef<MetaType>) as any
} else {
} else if (curFieldVal != null) {
res[fieldName] = curFieldVal as any
}

Expand Down

0 comments on commit 0eef4b9

Please sign in to comment.