File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function handleStateAdd(normalized, list) {
151151 return newList ;
152152}
153153function getMode ( evt ) {
154- if ( evt . oldIndicies . length > 0 )
154+ if ( evt . oldIndicies && evt . oldIndicies . length > 0 )
155155 return "multidrag" ;
156156 if ( evt . swapItem )
157157 return "swap" ;
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ function handleStateAdd(normalized, list) {
157157 return newList ;
158158}
159159function getMode ( evt ) {
160- if ( evt . oldIndicies . length > 0 )
160+ if ( evt . oldIndicies && evt . oldIndicies . length > 0 )
161161 return "multidrag" ;
162162 if ( evt . swapItem )
163163 return "swap" ;
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export function handleStateAdd<T extends ItemInterface>(
124124}
125125
126126export function getMode ( evt : MultiDragEvent ) {
127- if ( evt . oldIndicies . length > 0 ) return "multidrag" ;
127+ if ( evt . oldIndicies && evt . oldIndicies . length > 0 ) return "multidrag" ;
128128 if ( evt . swapItem ) return "swap" ;
129129 return "normal" ;
130130}
You can’t perform that action at this time.
0 commit comments