Skip to content

Commit f66543c

Browse files
committed
When updating a schedule in the UI, it now says “Schedule updated”
1 parent 03b104a commit f66543c

File tree

1 file changed

+1
-1
lines changed
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.schedules.new

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.schedules.new/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
9696
return redirectWithSuccessMessage(
9797
v3SchedulesPath({ slug: organizationSlug }, { slug: projectParam }),
9898
request,
99-
"Schedule created"
99+
submission.value?.friendlyId === result.id ? "Schedule updated" : "Schedule created"
100100
);
101101
} catch (error: any) {
102102
submission.error.taskIdentifier =

0 commit comments

Comments
 (0)