Skip to content

Commit ced47d7

Browse files
fix(web): a deleted task's URL is not shown, and only full URLs copy
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent f930882 commit ced47d7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines 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)