Skip to content

Commit 655a0bb

Browse files
MA2153claude
andcommitted
fix(admin): trim the restatement from the content list search comment
Keeps the cross-route constraint on optionality, drops the summary of what the interface already declares. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 6e0338a commit 655a0bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/admin/src/router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ const DATE_FIELDS: ContentDateField[] = ["createdAt", "updatedAt", "publishedAt"
321321
/** `YYYY-MM-DD`, the shape the date inputs emit. */
322322
const CALENDAR_DATE_REGEX = /^\d{4}-\d{2}-\d{2}$/;
323323

324-
// Every key is optional: defaults are omitted from the URL, and other routes
325-
// link here supplying only the params they care about (usually just `locale`).
324+
// Routes link here supplying only the params they care about, so making any
325+
// key required breaks those links.
326326
export interface ContentListSearch {
327327
locale?: string | undefined;
328328
/** 1-based, and only ever set when past the first page. */

0 commit comments

Comments
 (0)