Skip to content

Commit

Permalink
BUGFIX: Hide paste button in inline ui if no nodes are in clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Dec 1, 2024
1 parent f20b22c commit bbecdc7
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 bbecdc7

Please sign in to comment.