From 66f4e9a76da73d5a01fe347b1bf84ca16257657c Mon Sep 17 00:00:00 2001 From: Catalin Bugnar Date: Thu, 23 May 2024 10:43:05 +0300 Subject: [PATCH] push changes --- src/datasources/notebook/QueryEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasources/notebook/QueryEditor.tsx b/src/datasources/notebook/QueryEditor.tsx index 11d9aab8..ded321fd 100644 --- a/src/datasources/notebook/QueryEditor.tsx +++ b/src/datasources/notebook/QueryEditor.tsx @@ -47,7 +47,7 @@ export class QueryEditor extends PureComponent { this.setState({ notebooks, loadingNotebooks: false }); if (this.props.query.id) { - const notebook = this.getNotebook(this.props.query.id); + const notebook = notebooks.find((notebook: Notebook) => notebook.id === this.props.query.id); if (notebook) { await this.populateNotebookMetadata(notebook); }