@vtx/cs-map-layer 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,9 +35,9 @@ var DeviceLayer = function DeviceLayer(props) {
35
35
  version: '1'
36
36
  } : _props$popup,
37
37
  otherProps = _objectWithoutProperties(props, _excluded);
38
- var _deviceCodeMap$code = deviceCodeMap[code],
39
- labelField = _deviceCodeMap$code.labelField,
40
- icon = _deviceCodeMap$code.icon;
38
+ var _ref = deviceCodeMap[code] || {},
39
+ labelField = _ref.labelField,
40
+ icon = _ref.icon;
41
41
  var _name = name || deviceCodeMap[code].name;
42
42
  var _useRequest = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
43
43
  var res;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/cs-map-layer",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "React components for Vortex",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",