mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: refresh notebooks after adding a new notebook
This commit is contained in:
@@ -331,7 +331,13 @@ function MoveDialog({ onClose, noteIds }: MoveDialogProps) {
|
||||
data-test-id="add-new-notebook"
|
||||
variant="secondary"
|
||||
sx={{ mt: 2 }}
|
||||
onClick={() => showAddNotebookDialog()}
|
||||
onClick={() =>
|
||||
showAddNotebookDialog().then(() =>
|
||||
rootNotebooks.status === "fulfilled"
|
||||
? rootNotebooks.refresh()
|
||||
: null
|
||||
)
|
||||
}
|
||||
>
|
||||
Add new notebook
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user