Skip to content

Commit

Permalink
fix: cannot see move to page option when there are exactly two pages …
Browse files Browse the repository at this point in the history
…in the app (#38328)

## Description
Fixes an issue where move between pages in query context menu was not
possible.

Fixes [#38117](#38117)

/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/12468165994>
> Commit: 1ef7d57
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12468165994&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.IDE`
> Spec:
> <hr>Mon, 23 Dec 2024 14:47:50 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
  • Loading branch information
alex-golovanov authored Dec 24, 2024
1 parent cda656b commit 16953b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Move = ({ disabled }: Props) => {
{createMessage(CONTEXT_MOVE)}
</MenuSubTrigger>
<MenuSubContent>
{menuPages.length > 1 ? (
{menuPages.length ? (
menuPages.map((page) => {
return (
<PageMenuItem
Expand Down

0 comments on commit 16953b8

Please sign in to comment.