dtable-ui-component 6.0.29-beta13 → 6.0.29-beta14
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.
|
@@ -349,7 +349,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
componentWillUnmount() {
|
|
352
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.B_MAP) {
|
|
352
|
+
if (this.map && this.mapType === _mapEditorUtils.MAP_TYPES.B_MAP) {
|
|
353
353
|
let center = {};
|
|
354
354
|
center.zoom = this.map.getZoom();
|
|
355
355
|
let coordinate = this.map.getCenter();
|
|
@@ -355,7 +355,7 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
componentWillUnmount() {
|
|
358
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.B_MAP) {
|
|
358
|
+
if (this.map && this.mapType === _mapEditorUtils.MAP_TYPES.B_MAP) {
|
|
359
359
|
let center = {};
|
|
360
360
|
center.zoom = this.map.getZoom();
|
|
361
361
|
let coordinate = this.map.getCenter();
|