PromucFlow_constructor/app/client/src/pages
Alex 52a394f362
fix: prevent menu content to be rendered when there are no options (#38329)
## Description
Fixes an issue where JS run menu is being shown with no items in it.

Fixes #38151 

## Automation

/ok-to-test tags="@tag.IDE"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/12468478974>
> Commit: f032137f9b4d9eeda85dfe1bb8d26e2e19f64c3b
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12468478974&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.IDE`
> Spec:
> <hr>Mon, 23 Dec 2024 15:12:31 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Improved dropdown menu rendering logic to prevent displaying an empty
menu when no options are available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-12-24 14:19:00 +05:30
..
AdminSettings chore: Analytics util refactor (#38089) 2024-12-19 17:46:22 +05:30
Applications feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
AppViewer chore: Masking user data in mixpanel session recordings (#38267) 2024-12-20 16:32:02 +03:00
common chore: Changes for introducing disabled states for package pull in application (#38222) 2024-12-23 14:13:19 +05:30
Editor fix: prevent menu content to be rendered when there are no options (#38329) 2024-12-24 14:19:00 +05:30
hooks chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
setup chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
Templates chore: Updating generate page interaction to show it in a modal following the IDE 2.0 interaction pattern (#37414) 2024-11-19 12:05:10 +05:30
tests chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UserAuth chore: Remove unused JSON signup API handler (#37387) 2024-11-15 12:39:29 +05:30
UserProfile chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
users chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
workspace chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
utils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00