Skip to content

Commit 756ce19

Browse files
committed
Allow template with unspecified demo_url
1 parent ef93161 commit 756ce19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reflex/utils/prerequisites.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Template:
6464
name: str
6565
description: str
6666
code_url: str
67-
demo_url: str
67+
demo_url: str | None = None
6868

6969

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

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

14671467
# Prompt the user to select a template.

0 commit comments

Comments
 (0)