fix(resources/notes): fetch notes after adding

This commit is contained in:
Christopher committed 2021-05-04 17:48:24 +02:00
1 parent f53117971e
commit fd6afa927c
1 file changed
+4
+4
View File
@@ -20,6 +20,10 @@ on(`__cfx_nui:${NotesEvents.UPDATE_NOTE}`, (note: Note) => {
emitNet(NotesEvents.UPDATE_NOTE, note);
});
onNet(NotesEvents.SEND_NOTE_SUCCESS, () => {
emitNet(NotesEvents.FETCH_ALL_NOTES);
});
onNet(NotesEvents.UPDATE_NOTE_SUCCESS, () => {
emitNet(NotesEvents.FETCH_ALL_NOTES);
});