@vtx/cs-map-layer 1.0.26 → 1.0.27

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.
@@ -21,6 +21,7 @@ import http from "../_util/http";
21
21
  import { useRequest } from 'ahooks';
22
22
  import { cloneDeep, isEmpty, isObject } from 'lodash';
23
23
  var DeviceLayer = function DeviceLayer(props) {
24
+ var _deviceCodeMap$code;
24
25
  var _props$code = props.code,
25
26
  code = _props$code === void 0 ? DEVICE_CODE.DEFAULT : _props$code,
26
27
  _props$params = props.params,
@@ -38,7 +39,7 @@ var DeviceLayer = function DeviceLayer(props) {
38
39
  var _ref = deviceCodeMap[code] || {},
39
40
  labelField = _ref.labelField,
40
41
  icon = _ref.icon;
41
- var _name = name || deviceCodeMap[code].name;
42
+ var _name = name || ((_deviceCodeMap$code = deviceCodeMap[code]) === null || _deviceCodeMap$code === void 0 ? void 0 : _deviceCodeMap$code.name);
42
43
  var _useRequest = useRequest( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
43
44
  var res;
44
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/cs-map-layer",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "React components for Vortex",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",