Refactor file path configuration in FileComponent

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-30 20:21:56 -03:00
commit 9e3c3c7ef8

View file

@ -13,8 +13,8 @@ class FileComponent(CustomComponent):
def build_config(self) -> Dict[str, Any]: def build_config(self) -> Dict[str, Any]:
return { return {
"paths": { "path": {
"display_name": "Paths", "display_name": "Path",
"field_type": "file", "field_type": "file",
"file_types": TEXT_FILE_TYPES, "file_types": TEXT_FILE_TYPES,
"info": f"Supported file types: {', '.join(TEXT_FILE_TYPES)}", "info": f"Supported file types: {', '.join(TEXT_FILE_TYPES)}",