Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #450 from afshin/issue-449
Browse files Browse the repository at this point in the history
Bail if widget to be removed is not found in GridLayout. Fixes #449.
  • Loading branch information
sccolbert authored Nov 5, 2019
2 parents 5d86cf8 + a584232 commit 5eea83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/widgets/src/gridlayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class GridLayout extends Layout {
let i = ArrayExt.findFirstIndex(this._items, it => it.widget === widget);

// Bail if the widget is not in the layout.
if (i !== -1) {
if (i === -1) {
return;
}

Expand Down

0 comments on commit 5eea83b

Please sign in to comment.