Skip to content

Commit

Permalink
Fix display when request hasnt been saved to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 10, 2024
1 parent 449a410 commit 75af8c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/posting/widgets/request/request_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def watch_request(self, request: RequestModel | None) -> None:
else:
self.request_name_input.value = request.name or ""
self.request_description_textarea.text = request.description
self.request_path_label.update(str(request.path) or "")
self.request_path_label.update(
str(request.path) if request.path else "Request not saved to disk."
)

def compose(self) -> ComposeResult:
self.can_focus = False
Expand Down

0 comments on commit 75af8c7

Please sign in to comment.