diff options
Diffstat (limited to 'src/client/views/nodes/MapBox/MapPushpinBox.tsx')
| -rw-r--r-- | src/client/views/nodes/MapBox/MapPushpinBox.tsx | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/src/client/views/nodes/MapBox/MapPushpinBox.tsx b/src/client/views/nodes/MapBox/MapPushpinBox.tsx index 590f8735c..8760c8600 100644 --- a/src/client/views/nodes/MapBox/MapPushpinBox.tsx +++ b/src/client/views/nodes/MapBox/MapPushpinBox.tsx @@ -1,15 +1,11 @@ -import { observer } from 'mobx-react'; -// import { SettingsManager } from '../../../util/SettingsManager'; +import * as React from 'react';  import { ViewBoxBaseComponent } from '../../DocComponent';  import { FieldView, FieldViewProps } from '../FieldView'; -import * as React from 'react'; -import { computed } from 'mobx';  import { MapBox } from './MapBox';  /**   * Map Pushpin doc class   */ -@observer  export class MapPushpinBox extends ViewBoxBaseComponent<FieldViewProps>() {      public static LayoutString(fieldKey: string) {          return FieldView.LayoutString(MapPushpinBox, fieldKey); @@ -21,11 +17,11 @@ export class MapPushpinBox extends ViewBoxBaseComponent<FieldViewProps>() {          this.mapBoxView.deletePushpin(this.Document);      } -    @computed get mapBoxView() { -        return this.props.DocumentView?.()?.props.docViewPath().lastElement()?.ComponentView as MapBox; +    get mapBoxView() { +        return this.props.DocumentView?.()?._props.docViewPath().lastElement()?.ComponentView as MapBox;      } -    @computed get mapBox() { -        return this.props.DocumentView?.().props.docViewPath().lastElement()?.Document; +    get mapBox() { +        return this.props.DocumentView?.()._props.docViewPath().lastElement()?.Document;      }      render() { | 
