Fix simple lint errors

This commit is contained in:
J. Ryan Stinnett 2021-04-01 14:15:21 +01:00
parent 9c3bd12830
commit 0e92251f70
8 changed files with 35 additions and 27 deletions

View file

@ -124,13 +124,12 @@ export default class EventIndexPanel extends React.Component {
}
_confirmEventStoreReset = () => {
const self = this;
const { close } = Modal.createDialog(SeshatResetDialog, {
onFinished: async (success) => {
if (success) {
await SettingsStore.setValue('enableEventIndexing', null, SettingLevel.DEVICE, false);
await EventIndexPeg.deleteEventIndex();
await self._onEnable();
await this._onEnable();
close();
}
},