Created
May 10, 2018 18:14
-
-
Save ratbeard/8cc0635df962a9437cdfb587cfdf0d27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (items.length > 1) { | |
| return false | |
| } | |
| const item = items[0] | |
| if ('attachableIcon' in item) { | |
| return item.actions.includes('update') | |
| } else { | |
| return item.actions.includes('update') | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment