From 16953b81595ce0c73560b8d902995bbeb4b63264 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 24 Dec 2024 10:12:00 +0300 Subject: [PATCH] fix: cannot see move to page option when there are exactly two pages in the app (#38328) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Fixes an issue where move between pages in query context menu was not possible. Fixes [#38117](https://github.com/appsmithorg/appsmith/issues/38117) /ok-to-test tags="@tag.IDE" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 1ef7d576fc5d8c9261279cdc77c69c9688826262 > Cypress dashboard. > Tags: `@tag.IDE` > Spec: >
Mon, 23 Dec 2024 14:47:50 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No --- .../AppPluginActionEditor/components/ToolbarMenu/Move.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/pages/Editor/AppPluginActionEditor/components/ToolbarMenu/Move.tsx b/app/client/src/pages/Editor/AppPluginActionEditor/components/ToolbarMenu/Move.tsx index a73e52e8bb0..7e2f91d22e0 100644 --- a/app/client/src/pages/Editor/AppPluginActionEditor/components/ToolbarMenu/Move.tsx +++ b/app/client/src/pages/Editor/AppPluginActionEditor/components/ToolbarMenu/Move.tsx @@ -46,7 +46,7 @@ export const Move = ({ disabled }: Props) => { {createMessage(CONTEXT_MOVE)} - {menuPages.length > 1 ? ( + {menuPages.length ? ( menuPages.map((page) => { return (