Skip to content

Commit 71b0ef8

Browse files
committed
Don’t allow editing the Deduplication key when updating a schedule
1 parent f66543c commit 71b0ef8

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,16 @@ export function UpsertScheduleForm({
324324
</Label>
325325
<Input
326326
{...conform.input(deduplicationKey, { type: "text" })}
327+
disabled={schedule !== undefined}
327328
defaultValue={
328329
schedule?.userProvidedDeduplicationKey ? schedule?.deduplicationKey : undefined
329330
}
330331
/>
332+
{schedule && (
333+
<Paragraph variant="small">
334+
You can't edit the Deduplication key on an existing schedule.
335+
</Paragraph>
336+
)}
331337
<Hint>
332338
Optionally specify a key, you can only create one schedule with this key. This is
333339
very useful when using the SDK and you don't want to create duplicate schedules for

0 commit comments

Comments
 (0)