From 604d2c4ee9a0c19b8dd9593b8e2227d8f46caddb Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Tue, 18 Oct 2022 17:46:06 +0500 Subject: [PATCH] mobile: remove dateEdited from sort options in Tags screen --- apps/mobile/app/components/sheets/sort/index.js | 4 ++-- apps/mobile/app/utils/constants.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/mobile/app/components/sheets/sort/index.js b/apps/mobile/app/components/sheets/sort/index.js index 061783b11..e95cd80b7 100644 --- a/apps/mobile/app/components/sheets/sort/index.js +++ b/apps/mobile/app/components/sheets/sort/index.js @@ -35,7 +35,6 @@ const Sort = ({ type, screen }) => { const [groupOptions, setGroupOptions] = useState( db.settings.getGroupOptions(type) ); - const updateGroupOptions = async (_groupOptions) => { await db.settings.setGroupOptions(type, _groupOptions); @@ -141,7 +140,8 @@ const Sort = ({ type, screen }) => { /> ) : ( Object.keys(SORT).map((item) => - item === "title" && groupOptions.groupBy !== "none" ? null : ( + (item === "title" && groupOptions.groupBy !== "none") || + (screen === "Tags" && item === "dateEdited") ? null : (