Fix so that items can be removed in react version