Skip to content

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

fix sorting not changing

ammarahm-ed864fc59590ff
diff --git a/apps/mobile/src/components/SortDialog/index.js b/apps/mobile/src/components/SortDialog/index.js
index 157465a37..022800b5e 100644
--- a/apps/mobile/src/components/SortDialog/index.js
+++ b/apps/mobile/src/components/SortDialog/index.js
@@ -167,7 +167,7 @@ class SortDialog extends React.Component {
onPress={async () => {
let _groupOptions = {
...groupOptions,
- sortBy: type === 'trash' ? 'dateDeleted' : item,
+ sortBy: this.props.type === 'trash' ? 'dateDeleted' : item,
};
await this.updateGroupOptions(_groupOptions);
}}