mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix favorite from multi-select
This commit is contained in:
@@ -125,10 +125,14 @@ export const SelectionHeader = ({navigation}) => {
|
||||
if (selectedItemsList.length > 0) {
|
||||
selectedItemsList.forEach(async item => {
|
||||
await db.notes.note(item.id).favorite();
|
||||
});
|
||||
dispatch({type: ACTIONS.SELECTION_MODE, enabled: false});
|
||||
dispatch({type: ACTIONS.NOTES});
|
||||
dispatch({type: ACTIONS.FAVORITES});
|
||||
});
|
||||
|
||||
dispatch({type: ACTIONS.SELECTION_MODE, enabled: false});
|
||||
|
||||
dispatch({type: ACTIONS.CLEAR_SELECTION});
|
||||
|
||||
ToastEvent.show('Notes added to favorites', 'success');
|
||||
}
|
||||
}}>
|
||||
|
||||
Reference in New Issue
Block a user