GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): a deleted task's URL is not shown, and only full URLs copy · pingdotgg/t3code@ed888aa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components/settings
    • ScheduledTasksSettings.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/settings/ScheduledTasksSettings.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/settings/ScheduledTasksSettings.tsx
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ function WebhookEndpointField({
707707
size="sm"
708708
variant="outline"
709709
type="button"
710+
// A bare path is not a URL a sender can call.
711+
disabled={!url.startsWith("http")}
710712
onClick={() => copyToClipboard(url, undefined)}
711713
>
712714
<CopyIcon />
@@ -782,7 +784,10 @@ function ScheduledTaskEditorDialog({
782784
tasksQuery.data !== null &&
783785
!tasksQuery.data.tasks.some((entry) => entry.id === draft.editingId);
784786
// The live row, so a rotated URL shows up without reopening the dialog.
785-
const liveTask = tasksQuery.data?.tasks.find((entry) => entry.id === draft.editingId) ?? task;
787+
// Once the list has loaded, a missing task is gone; don't keep showing its URL.
788+
const liveTask = tasksQuery.data
789+
? (tasksQuery.data.tasks.find((entry) => entry.id === draft.editingId) ?? null)
790+
: task;
786791
const selectedProjectId = draft.projectId || projects[0]?.id || "";
787792
const selectedProject = projects.find((project) => project.id === selectedProjectId);
788793

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.