Skip to content

Commit

Permalink
Merge pull request #3890 from neos/bugfix/hide-paste-button-in-inline…
Browse files Browse the repository at this point in the history
…-ui-if-no-nodes-are-in-clipboard

BUGFIX: Hide paste button in inline ui if no nodes are in clipboard
  • Loading branch information
Sebobo authored Dec 3, 2024
2 parents a5b7015 + e888d7a commit 1b6f722
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b6f722

Please sign in to comment.