Make new result parts optional

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-02-12 16:21:47 +01:00
parent 361f160d0d
commit 83755b7b02
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 3 additions and 3 deletions

View File

@ -115,10 +115,10 @@ class AutoCompleteController extends Controller {
$output[] = [
'id' => (string) $result['value']['shareWith'],
'label' => $result['label'],
'icon' => $result['icon'],
'icon' => $result['icon'] ?? '',
'source' => $type,
'status' => $result['status'],
'subline' => $result['subline']
'status' => $result['status'] ?? '',
'subline' => $result['subline'] ?? '',
];
}
}