mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
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:
parent
5b076c9d31
commit
c3753e8725
1 changed files with 1 additions and 1 deletions
|
|
@ -348,7 +348,7 @@ const MultiLineCodeEditor = (props) => {
|
|||
view={editorView}
|
||||
isPanelOpen={isSearchPanelOpen}
|
||||
renderCopilot={() =>
|
||||
renderCopilot({
|
||||
renderCopilot?.({
|
||||
darkMode,
|
||||
language: lang,
|
||||
editorRef,
|
||||
|
|
|
|||
Loading…
Reference in a new issue