There is no automatic compatibility patch for Drupal 10 working as expected. That said, I'm sharing my own patch. It worked correctly on my D10 instance.
Patch attached.
Active
2.0
Code
filipeabreu → closed merge request !2