diff --git a/packages/dashboard-core-plugins/src/ConsolePlugin.tsx b/packages/dashboard-core-plugins/src/ConsolePlugin.tsx index cb469f4bdd..4a926d63c7 100644 --- a/packages/dashboard-core-plugins/src/ConsolePlugin.tsx +++ b/packages/dashboard-core-plugins/src/ConsolePlugin.tsx @@ -426,7 +426,9 @@ export const ConsolePlugin = ({ /** Attempts to send the text to a notebook matching the passed in settings */ const sendToNotebook = useCallback( (session, sessionLanguage, settings = {}, createIfNecessary = true) => { - const notebookPanel = panelManager.getLastUsedPanelOfType(NotebookPanel); + const notebookPanel = panelManager.getLastUsedPanelOfType( + NotebookPanel.WrappedComponent + ); if (notebookPanel && isNotebookPanel(notebookPanel)) { if (settings && settings.value && notebookPanel.notebook) { notebookPanel.notebook.append(settings.value);