Commit 3d0020e1 authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(fix bug Devicemap ): correct if statement for hislink array

parent f8a7123a
Pipeline #794 passed with stages
in 53 minutes and 7 seconds
......@@ -68,6 +68,8 @@ build_in_devel_windows:
allow_failure: true
only:
- devel-windows
# only:
# - /^staging_.*/
build_in_master:
before_script:
......
......@@ -167,7 +167,7 @@ export default {
{ _id: devicemap.HisLinkId },
{ fields: { Name: 1 } }
).fetch();
if (hislink)
if (hislink.length > 0)
currentDevicemap.push({ ...devicemap, HisName: hislink[0].Name });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment