Fixing a collection delete button problems with removing items

There is a problem with removeField function in collection js file. A delete button requires additional n clicks (where n is the number of rows from entity) to delete a row. Not sure what was the cause but I tried a different removal approach and it works.