Drupal 8 - TypeError: Argument 1 passed to civicrm_api() must be of the type string
Currently I'm getting this error not allowing me to add any new element to webforms
Drupal Version 8.8.5 PHP 7.3.17 civicrm 5.25.0 webform 5.11 webform_civicrm 5.x-dev
TypeError: Argument 1 passed to civicrm_api() must be of the type string, null given, called in /var/www/vhosts/xx/httpdocs/web/modules/contrib/webform_civicrm/includes/utils.inc on line 532 in civicrm_api() (line 21 of /var/www/vhosts/xx/httpdocs/vendor/civicrm/civicrm-core/api/api.php)
Drupal logs also shows Notice: Undefined index: #form_key in Drupal\webform_civicrm\Plugin\WebformElement\CivicrmSelect->getFieldOptions() (line 85 of /var/www/vhosts/xx/httpdocs/web/modules/contrib/webform_civicrm/src/Plugin/WebformElement/CivicrmSelect.php).
Notice: Undefined offset: 1 in Drupal\webform_civicrm\Plugin\WebformElement\CivicrmContact->prepare() (line 107 of /var/www/vhosts/xx/httpdocs/web/modules/contrib/webform_civicrm/src/Plugin/WebformElement/CivicrmContact.php).