Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix notes not updating on changing sort order

ammarahm-ed32c0325b3338
diff --git a/apps/mobile/src/components/SortDialog/index.js b/apps/mobile/src/components/SortDialog/index.js
index f9659da97..cd883cd1e 100644
--- a/apps/mobile/src/components/SortDialog/index.js
+++ b/apps/mobile/src/components/SortDialog/index.js
@@ -104,7 +104,9 @@ class SortDialog extends React.Component {
this.state.settings?.sortOrder === 'asc' ? 'desc' : 'asc';
await SettingsService.set('sortOrder', value);
sortSettings.sortOrder = value;
- await this.getSettings();
+ await this.getSettings();
+ updateEvent({type: Actions.NOTES});
+
}}
activeOpacity={1}
style={{