Commit 2d621bba authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(DeviceMap Fix Bug): fix devicemap Name bug

parent 3d0020e1
Pipeline #795 passed with stages
in 37 minutes and 23 seconds
......@@ -167,7 +167,11 @@ export default {
{ _id: devicemap.HisLinkId },
{ fields: { Name: 1 } }
).fetch();
if (hislink.length > 0)
if (
hislink != undefined &&
hislink != null &&
hislink[0].Name != undefined
)
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