Fix an error if you left the Vocabulary empty.
Re-roll patch #23 for drupal 10.4.x.
oways23 → created an issue.
Removing assert() from patch #11 and replace it with if statement.
why did I removed the assert() because on Production the zend.assertions will be -1 (at most cases) so assert won't be working as expected.
I got the error on AddToCartEvent.
Error: Error: Call to a member function getStore() on null in Drupal\google_tag\Plugin\GoogleTag\Event\Commerce\AddToCartEvent->getData() (line 45 of /app/docroot/modules/contrib/google_tag/src/Plugin/GoogleTag/Event/Commerce/AddToCartEvent.php).
with the assert() applied.
Re-roll merge request #8472
Re-roll patch 2
Re-roll patch 142
Re-roll patch #57
Re-roll patch 52
This is the same patch in comment #33, to make it work with the last update for the module.
Submit for review.
@berdir
what are the new features that conflicts with this patch?