Merge pull request #13261 from ToolJet/ai-modularisation-bug-fix

Added optional chaining for renderCopilot function call as its not passed as prop in few cases hence getting resolved to undefined
This commit is contained in:
Johnson Cherian 2025-07-09 13:07:24 +05:30 committed by GitHub
commit bb6a05b696
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -348,7 +348,7 @@ const MultiLineCodeEditor = (props) => {
view={editorView}
isPanelOpen={isSearchPanelOpen}
renderCopilot={() =>
renderCopilot({
renderCopilot?.({
darkMode,
language: lang,
editorRef,