fix(ui): fix notes dupe

This commit is contained in:
nick-delirium 2023-07-11 10:24:24 +02:00
parent cd206c2591
commit 23ce85e662

View file

@ -124,9 +124,7 @@ function CreateNote({
.then((r) => { .then((r) => {
onSuccess(r!.noteId as unknown as string); onSuccess(r!.noteId as unknown as string);
toast.success('Note added'); toast.success('Note added');
notesStore.fetchSessionNotes(sessionId).then(() => { void notesStore.fetchSessionNotes(sessionId)
addNote(r as Note);
});
}) })
.catch((e) => { .catch((e) => {
toast.error('Error adding note'); toast.error('Error adding note');