fix(ui): fix notes dupe
This commit is contained in:
parent
cd206c2591
commit
23ce85e662
1 changed files with 1 additions and 3 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue