Skip to content

Commit

Permalink
fix: notebook creation in 3000 (#19504)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Dec 28, 2023
1 parent 632bcbf commit e2bfdcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/models/notebooksModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const openNotebook = async (
const thePanelLogic = notebookPanelLogic.findMounted()

if (thePanelLogic && target === NotebookTarget.Popover) {
notebookPanelLogic.actions.selectNotebook(notebookId, { autofocus })
thePanelLogic.actions.selectNotebook(notebookId, { autofocus })
} else {
if (router.values.location.pathname === urls.notebook('new')) {
router.actions.replace(urls.notebook(notebookId))
Expand Down Expand Up @@ -86,9 +86,7 @@ export const notebooksModel = kea<notebooksModelType>([
notebooks: [
[] as NotebookListItemType[],
{
createNotebook: async ({ title, location, content, onCreate }, breakpoint) => {
await breakpoint(100)

createNotebook: async ({ title, location, content, onCreate }) => {
const notebook = await api.notebooks.create({
title,
content: defaultNotebookContent(title, content),
Expand Down

0 comments on commit e2bfdcf

Please sign in to comment.