Refactor file path configuration in FileComponent
This commit is contained in:
parent
07ddd6c43b
commit
9e3c3c7ef8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)}",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue