I am using Magento 2.4.2 community when I try to edit a configurable product I am getting the below in my store. How to fix it.
Notice: Undefined offset: 0 in /var/www/html/vendor/magento/module-configurable-product/Model/Product/Type/VariationMatrix.php on line 47
Exception in /var/www/html/vendor/magento/framework/App/ErrorHandler.php:61