diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 72b8f1c5..6e0ddd92 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -1,4 +1,5 @@ import React, { Fragment } from 'react'; +import ReactDOM from 'react-dom'; import { NavLink, Redirect } from 'react-router-dom'; import Confetti from 'canvas-confetti'; import _ from 'lodash'; @@ -247,13 +248,15 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine this.setState({error: err}); } - if (slug == 'current_landuse_group'){ - const edits = { - ['current_landuse_verified'] = true - } - this.doSubmit(edits); - console.log('current_landuse_verified updated') - } + // Hack to get tiles to refresh + const div = document.createElement('div'); + ReactDOM.render( + + + , + div + ); + console.log(slug + " verify button clicked") }