Skip to content

Commit

Permalink
Update vizro-core/src/vizro/models/_dashboard.py
Browse files Browse the repository at this point in the history
Co-authored-by: Antony Milne <[email protected]>
Signed-off-by: Ann Marie Ward <[email protected]>
  • Loading branch information
AnnMarieW and antonymilne authored Dec 20, 2023
1 parent 9a279cb commit f5f1c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vizro-core/src/vizro/models/_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _make_page_404_layout():
className="page_error_container",
)

def _infer_image(self, basename: str):
def _infer_image(self, filename: str):
valid_extensions = [".apng", ".avif", ".gif", ".jpeg", ".jpg", ".png", ".svg", ".webp"]
assets_folder = Path(dash.get_app().config.assets_folder)
if assets_folder.is_dir():
Expand Down

0 comments on commit f5f1c61

Please sign in to comment.