1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 09:40:10 +02:00

remove dom access

This commit is contained in:
Kushagra Gour
2019-07-16 22:03:05 +05:30
parent 9558dff0b1
commit 73e89f7a89
2 changed files with 13 additions and 16 deletions

View File

@@ -286,8 +286,6 @@ export default class App extends Component {
this.setState(prevState => {
const newCount = prevState.unsavedEditCount + 1;
console.log('checking on ', newCount);
if (
newCount % UNSAVED_WARNING_COUNT === 0 &&
newCount >= UNSAVED_WARNING_COUNT