Skip to content

Commit

Permalink
Allow template with unspecified demo_url (#4741)
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf authored Feb 4, 2025
1 parent 44d6e11 commit 2ff840a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/utils/prerequisites.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Template:
name: str
description: str
code_url: str
demo_url: str
demo_url: str | None = None


@dataclasses.dataclass(frozen=True)
Expand Down Expand Up @@ -1461,7 +1461,7 @@ def prompt_for_template_options(templates: list[Template]) -> str:
# Show the user the URLs of each template to preview.
console.print("\nGet started with a template:")

def format_demo_url_str(url: str) -> str:
def format_demo_url_str(url: str | None) -> str:
return f" ({url})" if url else ""

# Prompt the user to select a template.
Expand Down

0 comments on commit 2ff840a

Please sign in to comment.