aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/MapBox/MapPushpinBox.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/MapBox/MapPushpinBox.tsx')
-rw-r--r--src/client/views/nodes/MapBox/MapPushpinBox.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/client/views/nodes/MapBox/MapPushpinBox.tsx b/src/client/views/nodes/MapBox/MapPushpinBox.tsx
index 6369f9e04..d28209ea1 100644
--- a/src/client/views/nodes/MapBox/MapPushpinBox.tsx
+++ b/src/client/views/nodes/MapBox/MapPushpinBox.tsx
@@ -5,28 +5,23 @@ import { FieldView, FieldViewProps } from '../FieldView';
import React = require('react');
import { computed } from 'mobx';
import { MapBox } from './MapBox';
-import { undoable } from '../../../util/UndoManager';
-
/**
* Map Pushpin doc class
*/
@observer
export class MapPushpinBox extends ViewBoxBaseComponent<FieldViewProps>() {
-
-
public static LayoutString(fieldKey: string) {
return FieldView.LayoutString(MapPushpinBox, fieldKey);
}
componentDidMount() {
// if (this.mapBoxView)
- this.mapBoxView.addPushpin(this.rootDoc);
+ this.mapBoxView.addPushpin(this.rootDoc);
}
componentWillUnmount() {
// this.mapBoxView.removePushpin(this.rootDoc);
}
-
@computed get mapBoxView() {
return this.props.DocumentView?.()?.props.docViewPath().lastElement()?.ComponentView as MapBox;
}
@@ -35,6 +30,6 @@ export class MapPushpinBox extends ViewBoxBaseComponent<FieldViewProps>() {
}
render() {
- return (<div></div>);
+ return <div></div>;
}
}