diff --git a/types/sortablejs/sortablejs-tests.ts b/types/sortablejs/sortablejs-tests.ts index 826fbd9b52..88a2c4283d 100644 --- a/types/sortablejs/sortablejs-tests.ts +++ b/types/sortablejs/sortablejs-tests.ts @@ -28,7 +28,7 @@ Sortable.create(list, { control = event.target; if (Sortable.utils.is(control, ".js-remove")) { - item.parentNode.removeChild(item); + item.parentNode!.removeChild(item); } else if (Sortable.utils.is(control, ".js-edit")) { // ..