Added optional chaining for renderCopilot function call as its not passed as prop in few cases hence getting resolbed to undefined (#13282)

Co-authored-by: Nishidh Jain <nishidh@tooljet.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
This commit is contained in:
Muhsin Shah C P 2025-07-09 14:06:29 +05:30 committed by GitHub
parent 5b076c9d31
commit c3753e8725
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,