Fixed a bug when trying to edit variant products.

Seems there was an issue when editing a product variant within the dashboard.