Skip to content

Commit

Permalink
fix: disable close on select and check value for docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazawazi committed Jul 15, 2024
1 parent a3f8375 commit caf8fdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/funix/decorator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ def decorator(function: Callable) -> callable:
if function_description == "" or function_description is None:
if GlobalSwitchOption.AUTO_READ_DOCSTRING_TO_FUNCTION_DESCRIPTION:
if function_docstring_parsed is not None:
function_description = un_indent(
function_docstring_parsed.description
)
else:
function_description_ = function_docstring_parsed.description
if function_description_:
function_description = un_indent(function_description_)
elif function_docstring:
function_description = un_indent(function_docstring)

parsed_theme = get_parsed_theme_fot_funix(theme)
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/FunixFunction/MultipleInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const MultipleInput = (props: MultipleInput) => {
value={value}
options={props.whitelist}
getOptionLabel={(option) => (option as any).toString()}
disableCloseOnSelect
onChange={(_event, newValue) => _setValue(newValue)}
renderInput={(params) => (
<TextField
Expand Down

0 comments on commit caf8fdb

Please sign in to comment.