mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 04:01:43 +02:00
web: refresh notebooks after adding a new notebook
This commit is contained in:
committed by
Abdullah Atta
parent
a32df1a009
commit
339e3444e7
@@ -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