Fixed Global Searching

This commit is contained in:
Vehikl 2025-01-02 17:06:19 -05:00
parent 133c1a511f
commit 760649a67d

View File

@ -143,6 +143,16 @@ class File extends Model
throw new Exception($contents['error']); throw new Exception($contents['error']);
} }
// No files found, for example
if (isset($contents['message'])) {
Notification::make()
->title($contents['message'])
->warning()
->send();
return [];
}
return array_map(function ($file) { return array_map(function ($file) {
return [ return [
'name' => $file['name'], 'name' => $file['name'],