mobile: fix reset select does not reset selected topics

This commit is contained in:
ammarahm-ed
2023-03-23 11:15:47 +05:00
committed by Abdullah Atta
parent 5b3c889b7c
commit 47f919cb61

View File

@@ -148,6 +148,8 @@ const MoveNoteSheet = ({ note, actionSheetRef }) => {
: "deselected";
if (itemState[notebook.id] === "selected") {
contextValue.select(notebook);
} else {
contextValue.deselect(notebook);
}
for (let topic of notebook.topics) {
itemState[topic.id] = state
@@ -160,6 +162,8 @@ const MoveNoteSheet = ({ note, actionSheetRef }) => {
: "deselected";
if (itemState[topic.id] === "selected") {
contextValue.select(topic);
} else {
contextValue.deselect(topic);
}
}
}