mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix note not updating on lock
This commit is contained in:
@@ -26,7 +26,8 @@ import { useTracked } from '../../provider';
|
|||||||
import { ACTIONS } from '../../provider/actions';
|
import { ACTIONS } from '../../provider/actions';
|
||||||
import NavigationService from '../../services/NavigationService';
|
import NavigationService from '../../services/NavigationService';
|
||||||
import { timeConverter, ToastEvent, DDS, db } from '../../utils/utils';
|
import { timeConverter, ToastEvent, DDS, db } from '../../utils/utils';
|
||||||
import { openVault } from '../../services/eventManager';
|
import { openVault, eSendEvent } from '../../services/eventManager';
|
||||||
|
import { refreshNotesPage } from '../../services/events';
|
||||||
|
|
||||||
const w = Dimensions.get('window').width;
|
const w = Dimensions.get('window').width;
|
||||||
const h = Dimensions.get('window').height;
|
const h = Dimensions.get('window').height;
|
||||||
@@ -343,6 +344,9 @@ export const ActionSheetComponent = ({
|
|||||||
db.vault
|
db.vault
|
||||||
.add(note.id)
|
.add(note.id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
dispatch({ type: ACTIONS.NOTES })
|
||||||
|
eSendEvent(refreshNotesPage);
|
||||||
|
dispatch({ type: ACTIONS.PINNED });
|
||||||
close();
|
close();
|
||||||
})
|
})
|
||||||
.catch(async e => {
|
.catch(async e => {
|
||||||
|
|||||||
Reference in New Issue
Block a user