victor HF Staff commited on
Commit
41d4eac
·
1 Parent(s): 8761cb3

refactor: Pass editorRef to AskAI component

Browse files
Files changed (1) hide show
  1. src/components/App.tsx +2 -1
src/components/App.tsx CHANGED
@@ -193,7 +193,8 @@ function App() {
193
  />
194
  <AskAI
195
  html={html}
196
- setHtml={setHtml}
 
197
  isAiWorking={isAiWorking}
198
  setisAiWorking={setisAiWorking}
199
  onScrollToBottom={() => {
 
193
  />
194
  <AskAI
195
  html={html}
196
+ setHtml={setHtml} // Still needed for full HTML updates
197
+ editorRef={editorRef} // Pass the editor ref
198
  isAiWorking={isAiWorking}
199
  setisAiWorking={setisAiWorking}
200
  onScrollToBottom={() => {