From e888d7a6638c4f80c4b91ea46512178bf665d492 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sun, 1 Dec 2024 14:11:13 +0100 Subject: [PATCH] BUGFIX: Hide paste button in inline ui if no nodes are in clipboard --- .../InlineUI/NodeToolbar/Buttons/PasteClipBoardNode/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neos-ui-guest-frame/src/InlineUI/NodeToolbar/Buttons/PasteClipBoardNode/index.js b/packages/neos-ui-guest-frame/src/InlineUI/NodeToolbar/Buttons/PasteClipBoardNode/index.js index 79f255a60a..c9bebb3b53 100644 --- a/packages/neos-ui-guest-frame/src/InlineUI/NodeToolbar/Buttons/PasteClipBoardNode/index.js +++ b/packages/neos-ui-guest-frame/src/InlineUI/NodeToolbar/Buttons/PasteClipBoardNode/index.js @@ -15,7 +15,7 @@ import {selectors, actions} from '@neos-project/neos-ui-redux-store'; return (state, {contextPath}) => { const clipboardNodesContextPaths = selectors.CR.Nodes.clipboardNodesContextPathsSelector(state); - const canBePasted = (clipboardNodesContextPaths.every(clipboardNodeContextPath => { + const canBePasted = clipboardNodesContextPaths.length && (clipboardNodesContextPaths.every(clipboardNodeContextPath => { return canBePastedSelector(state, { subject: clipboardNodeContextPath, reference: contextPath