This commit is contained in:
Ed Chalstrey 2022-05-23 15:50:18 +01:00
parent 0d1d57eaa4
commit 06d10dc9ef

View File

@ -1,4 +1,5 @@
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
import { NavLink, Redirect } from 'react-router-dom'; import { NavLink, Redirect } from 'react-router-dom';
import Confetti from 'canvas-confetti'; import Confetti from 'canvas-confetti';
import _ from 'lodash'; import _ from 'lodash';
@ -247,13 +248,15 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
this.setState({error: err}); this.setState({error: err});
} }
if (slug == 'current_landuse_group'){ // Hack to get tiles to refresh
const edits = { const div = document.createElement('div');
['current_landuse_verified'] = true ReactDOM.render(
} <MemoryRouter>
this.doSubmit(edits); <App revisionId="0" />
console.log('current_landuse_verified updated') </MemoryRouter>,
} div
);
console.log(slug + " verify button clicked") console.log(slug + " verify button clicked")
} }