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) => {
onSuccess(r!.noteId as unknown as string);
toast.success('Note added');
notesStore.fetchSessionNotes(sessionId).then(() => {
addNote(r as Note);
});
void notesStore.fetchSessionNotes(sessionId)
})
.catch((e) => {
toast.error('Error adding note');