hunk.code_window: status: 400
   response:
     errors:
     - extensions:
         code: parse-failed
         path: $.variableValues[0].location
       message: 'unexpected geometry type: Random'
   query:
     variables:
       landmarks:
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:       path: $.variableValues.landmarks[0].location
  
hunk.file_path: server/tests-py/queries/graphql_mutation/insert/geojson/insert_geometry_unexpected_type_err.yaml
hunk.type: replace
file: import React from 'react';
  import PropTypes from 'prop-types';
  
  import { RESET } from './customFunctionReducer';
  
  import { setTable } from '../DataActions';
  
  class FunctionWrapper extends React.Component {
    componentDidMount() {
      this.props.dispatch(setTable(''));
    }
    componentWillUnmount() {
      this.props.dispatch({
        type: RESET,
      });
    }
    render() {
      const { children } = this.props;
      return <div>{children && React.cloneElement(children, this.props)}</div>;
    }
  }
  
  FunctionWrapper.propTypes = {
    children: PropTypes.node,
  };
  
  const mapStateToProps = state => {
    return {
      functionList: state.tables.postgresFunctions,
      functions: {
        ...state.functions,
      },
      migrationMode: state.main.migrationMode,
    };
  };
  
  const functionWrapperConnector = connect =>
    connect(mapStateToProps)(FunctionWrapper);
  
  export default functionWrapperConnector;
  