Skip to content

Commit e888d7a

Browse files
committed
BUGFIX: Hide paste button in inline ui if no nodes are in clipboard
1 parent a5b7015 commit e888d7a

File tree

1 file changed

+1
-1
lines changed
  • packages/neos-ui-guest-frame/src/InlineUI/NodeToolbar/Buttons/PasteClipBoardNode

1 file changed

+1
-1
lines changed

packages/neos-ui-guest-frame/src/InlineUI/NodeToolbar/Buttons/PasteClipBoardNode/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {selectors, actions} from '@neos-project/neos-ui-redux-store';
1515

1616
return (state, {contextPath}) => {
1717
const clipboardNodesContextPaths = selectors.CR.Nodes.clipboardNodesContextPathsSelector(state);
18-
const canBePasted = (clipboardNodesContextPaths.every(clipboardNodeContextPath => {
18+
const canBePasted = clipboardNodesContextPaths.length && (clipboardNodesContextPaths.every(clipboardNodeContextPath => {
1919
return canBePastedSelector(state, {
2020
subject: clipboardNodeContextPath,
2121
reference: contextPath

0 commit comments

Comments
 (0)