SearchKit: Undefined index notices when adding mailing recipients
We're getting a whole lot of notices when users use the autocomplete to add recipients to a mailing.
Notice: Undefined index: label in Civi\Api4\Action\SearchDisplay\AbstractRunAction->getValue() (line 178 of xxx/sites/all/modules/civicrm/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php)
It's happening when $data in the function is a sent mailing array. When getSelectExpression() is called for several of the keys the 'fields' item in the returned value is an empty array. The condition that follows assumes $key exists in 'fields'.
Appears it's just a case for an isset(), or is the empty fields array indicative of another issue? Haven't yet dug deeper.