Skip to content

1 exception(s): Exception #0 (Exception): Notice: Undefined variable: linkCollectionFactory

getting error while add to cart magento 2.4.2

1 exception(s):
Exception #0 (Exception): Notice: Undefined variable: linkCollectionFactory in /var/www/html/242/vendor/magento/module-downloadable/Observer/IsAllowedGuestCheckoutObserver.php on line 53

PLease help me out on this error