Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Jun 11, 2024
1 parent 46df6da commit e559683
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions reflex/components/core/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def clear_selected_files(id_: str = DEFAULT_UPLOAD_ID) -> EventSpec:
# UploadFilesProvider assigns a special function to clear selected files
# into the shared global refs object to make it accessible outside a React
# component via `call_script` (otherwise backend could never clear files).
return call_script(
f"refs['__clear_selected_files']({Var.create_safe(id_, _var_is_string=True)._var_name_unwrapped!r})"
)
return call_script(f"refs['__clear_selected_files']({id_!r})")


def cancel_upload(upload_id: str) -> EventSpec:
Expand Down

0 comments on commit e559683

Please sign in to comment.