Skip to content

Commit

Permalink
disable collection defaultSort for now
Browse files Browse the repository at this point in the history
there is a bug in payload... payloadcms/payload#4815
  • Loading branch information
Leo committed Mar 2, 2024
1 parent 084fd3e commit aedcf16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cms/collections/Posts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const Posts: CollectionConfig = {
defaultColumns: ["date", "title"],
useAsTitle: "title",
},
defaultSort: "-date",
// uncomment the next line as soon as this bug is fixed:
// https://github.com/payloadcms/payload/issues/4815
// defaultSort: "-date",
custom: {
addUrlField: {
hook: (slug?: string) => `/news/${slug || ""}`,
Expand Down
4 changes: 3 additions & 1 deletion cms/collections/Screenings/Seasons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const Seasons: CollectionConfig = {
group: t("Configuration"),
useAsTitle: "name",
},
defaultSort: "-sort",
// uncomment the next line as soon as this bug is fixed:
// https://github.com/payloadcms/payload/issues/4815
// defaultSort: "-sort",
access: {
read: () => true,
},
Expand Down

0 comments on commit aedcf16

Please sign in to comment.