File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ Style/PercentLiteralDelimiters:
81
81
' %w ' : ' []'
82
82
' %W ' : ' []'
83
83
84
+ Style/AsciiComments :
85
+ AllowedChars :
86
+ - ' ∆'
87
+
84
88
Style/AndOr :
85
89
# `and` and `or` banned only in conditionals (conditionals), or completely (always).
86
90
EnforcedStyle : ' always'
Original file line number Diff line number Diff line change @@ -403,8 +403,8 @@ export default class UiStore {
403
403
}
404
404
405
405
@action
406
- openMoveMenu ( { from, cardAction = 'move' , context = null } ) {
407
- const { id : fromCollectionId } = from
406
+ openMoveMenu ( { from = null , cardAction = 'move' , context = null } ) {
407
+ const fromCollectionId = from ? from . id : null
408
408
this . dismissedMoveHelper = false
409
409
this . pageMenuOpen = false
410
410
this . closeCardMenu ( )
Original file line number Diff line number Diff line change @@ -54,7 +54,10 @@ class ActionMenu extends React.Component {
54
54
55
55
openMoveMenu = cardAction => {
56
56
const { card, onMoveMenu, uiStore } = this . props
57
- const { viewingCollection } = uiStore
57
+ let { viewingCollection } = uiStore
58
+ if ( ! viewingCollection ) {
59
+ viewingCollection = card . record . parent ? card . record . parent . id : null
60
+ }
58
61
if ( onMoveMenu ) onMoveMenu ( { type : cardAction } )
59
62
uiStore . selectCardId ( card . id )
60
63
uiStore . openMoveMenu ( { from : viewingCollection , cardAction } )
You can’t perform that action at this time.
0 commit comments