File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ export class GridStackEngine {
417
417
// remember it's position & width so we can restore back (1 -> 12 column) #1655 #1985
418
418
// IFF we're not in the middle of column resizing!
419
419
const saveOrig = ( node . x || 0 ) + ( node . w || 1 ) > this . column ;
420
- if ( saveOrig && this . column < this . defaultColumn && ! this . _inColumnResize && ! this . skipCacheUpdate && ( node . _id ?? false ) && this . findCacheLayout ( node , this . defaultColumn ) === - 1 ) {
420
+ if ( saveOrig && this . column < this . defaultColumn && ! this . _inColumnResize && ! this . skipCacheUpdate && node . _id != null && this . findCacheLayout ( node , this . defaultColumn ) === - 1 ) {
421
421
const copy = { ...node } ; // need _id + positions
422
422
if ( copy . autoPosition || copy . x === undefined ) { delete copy . x ; delete copy . y ; }
423
423
else copy . x = Math . min ( this . defaultColumn - 1 , copy . x ) ;
You can’t perform that action at this time.
0 commit comments