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) => {
|
.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');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue