Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX: Prevent proptype warning regarding canBePasted property (#3900)
If clipboardNodesContextPaths.length is 0, this part will be interpreted as false (because 0 is considered "falsy" in JavaScript). The entire expression will then be 0 without evaluating the second part. This happens due to short-circuit evaluation in JavaScript. With this change we ensure that the value is always a boolean value.
- Loading branch information