Revert "Fix i is undefined error when editing vendors"

This reverts commit 6dbcbe93b91dd419baa66323d45a341c1d104062.