LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
fix/Separating clone to new try-catch block (#706)
harini-venkataramane1e963243370
diff --git a/frontend/src/components/custom-tools/header/Header.jsx b/frontend/src/components/custom-tools/header/Header.jsxindex da24362d3..5e873c0d3 100644--- a/frontend/src/components/custom-tools/header/Header.jsx+++ b/frontend/src/components/custom-tools/header/Header.jsx@@ -27,6 +27,10 @@ try {try {PromptShareButton =require("../../../plugins/prompt-studio-public-share/public-share-btn/PromptShareButton.jsx").PromptShareButton;+} catch {+ // The variable will remain undefined if the component is not available.+}+try {CloneButton =require("../../../plugins/prompt-studio-clone/clone-btn/CloneButton.jsx").CloneButton;} catch {diff --git a/frontend/src/components/custom-tools/tool-ide/ToolIde.jsx b/frontend/src/components/custom-tools/tool-ide/ToolIde.jsxindex a4ec9c89d..fd2e1c2d8 100644--- a/frontend/src/components/custom-tools/tool-ide/ToolIde.jsx+++ b/frontend/src/components/custom-tools/tool-ide/ToolIde.jsx@@ -35,14 +35,17 @@ try {require("../../../plugins/prompt-studio-public-share/public-share-modal/PromptShareModal.jsx").PromptShareModal;PromptShareLink =require("../../../plugins/prompt-studio-public-share/public-link-modal/PromptShareLink.jsx").PromptShareLink;- CloneTitle =- require("../../../plugins/prompt-studio-clone/clone-title-modal/CloneTitle.jsx").CloneTitle;HeaderPublic =require("../../../plugins/prompt-studio-public-share/header-public/HeaderPublic.jsx").HeaderPublic;} catch (err) {// Do nothing if plugins are not loaded.}-+try {+ CloneTitle =+ require("../../../plugins/prompt-studio-clone/clone-title-modal/CloneTitle.jsx").CloneTitle;+} catch (err) {+ // Do nothing if plugins are not loaded.+}function ToolIde() {const [showLogsModal, setShowLogsModal] = useState(false);const [activeKey, setActiveKey] = useState([]);