From 1671218e29b2c3450689350c5e4bec3aaa572de1 Mon Sep 17 00:00:00 2001 From: leonardosnt Date: Wed, 8 Jul 2020 10:26:25 -0300 Subject: [PATCH] Remove old context references --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index d50ebe4..c627362 100644 --- a/src/App.js +++ b/src/App.js @@ -65,7 +65,7 @@ class App extends Component { // Update when settings change Settings.observe(oldSettings => { if (oldSettings.sortByContext !== Settings.sortByContext) { - this.setState(state => ({ strings: this._sortByContext(state.context.strings) })); + this.setState(state => ({ strings: this._sortByContext(state.strings) })); return; } @@ -191,7 +191,7 @@ class App extends Component { }; onStringChanged = (newValue, stringId) => { - const string = this.state.context.strings.find(s => s.id === stringId); + const string = this.state.strings.find(s => s.id === stringId); if (newValue !== string.value) { string.value = newValue;