Move modal declaration above its usage in generateText #3

Closed
rileyseaburg wants to merge 1 commit from fix-modal-declaration into add-html-generation
rileyseaburg commented 2025-04-10 18:10:45 +00:00 (Migrated from github.com)

Fixes #2

Move the modal declaration above its usage in generateText in src/index.js.

  • Declare modal at the top of the file, before the generateText function.
  • Remove the previous modal declaration after the generateText function.
  • Adjust the generateText function to use the modal variable after it has been declared.

For more details, open the Copilot Workspace session.

Fixes #2 Move the `modal` declaration above its usage in `generateText` in `src/index.js`. * Declare `modal` at the top of the file, before the `generateText` function. * Remove the previous `modal` declaration after the `generateText` function. * Adjust the `generateText` function to use the `modal` variable after it has been declared. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/rileyseaburg/grapesjs-openai/pull/3?shareId=921e07da-8a70-4fd2-8ac0-2d39dfe2579b).

Pull request closed

Sign in to join this conversation.
No description provided.