From c81d96336e48e17c798317a10e5c567baabac4e0 Mon Sep 17 00:00:00 2001 From: Bugnar Catalin <71924999+Catalin-web@users.noreply.github.com> Date: Wed, 29 May 2024 11:31:45 +0300 Subject: [PATCH] fix(notebook): fix notebook plugin not loading notebook parameters when opening visualization (#61) --- 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); }