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

Commit 5eea83b

Browse files
authored
Merge pull request #450 from afshin/issue-449
Bail if widget to be removed is not found in GridLayout. Fixes #449.
2 parents 5d86cf8 + a584232 commit 5eea83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/widgets/src/gridlayout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class GridLayout extends Layout {
350350
let i = ArrayExt.findFirstIndex(this._items, it => it.widget === widget);
351351

352352
// Bail if the widget is not in the layout.
353-
if (i !== -1) {
353+
if (i === -1) {
354354
return;
355355
}
356356

0 commit comments

Comments
 (0)