WIP Et2VfsSelect - fix favorites

This commit is contained in:
nathan 2024-01-22 15:41:32 -07:00
parent 2539089d02
commit e68215102c
2 changed files with 3 additions and 2 deletions

View File

@ -339,8 +339,8 @@ export class Et2VfsSelect extends Et2InputWidget(LitElement) implements SearchMi
processRemoteResults(results) : FileInfo[]
{
this.helpText = results.message ?? "";
this._fileList = results.files ?? [];
this.helpText = results?.message ?? "";
this._fileList = results?.files ?? [];
return this._fileList;
}

View File

@ -641,6 +641,7 @@ class Vfs extends File
continue;
}
$name = $path['name'] ?? Api\Vfs::basename($path);
$path = $path['path'] ?? $path;
$is_dir = $path['isDir'] ?? Api\Vfs::is_dir($path);
$mime = $path['mime'] ?? Api\Vfs::mime_content_type($path);