Skip to content

Presets - duplicated users & crashes when opening preset list #15672

@steepnicki

Description

@steepnicki

Describe the Bug

Bug no. 1 - Duplicated users - when editing a preset and adding or removing a user from the access list, currently logged in user will be appended to the users list after every save
Bug no. 2 - Preset with "IS IN" conditional - when creating a preset which uses "IS IN" conditional, after saving and trying to open the list of presets, crashes occurs
Bug no. 3 - Duplicating a preset causes no links to be clickable after duplicating

In my reproduction repo I have added a script which automatically creates the mock data in the database on app launch. This includes the presets that are experiencing issues.

Link to the code that reproduces this issue

https://github.com/steepnicki/payload-preset-bugs

Reproduction Steps

1 - Duplicated users - edit preset, add or remove a user from the access list. Currently logged in user will be appended to the users list after every save
2 - Create a preset with "IS IN" conditional, save, and open the list with presets
3 - Duplicate a preset, be navigated back to the list, observe that no links are clickable in the list

Which area(s) are affected?

area: ui

Environment Info

Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: 1.22.22
  pnpm: 10.30.0
Relevant Packages:
  payload: 3.56.0
  next: 15.5.8
  @payloadcms/db-mongodb: 3.56.0
  @payloadcms/email-nodemailer: 3.56.0
  @payloadcms/graphql: 3.56.0
  @payloadcms/next/utilities: 3.56.0
  @payloadcms/plugin-cloud-storage: 3.56.0
  @payloadcms/richtext-lexical: 3.56.0
  @payloadcms/storage-s3: 3.56.0
  @payloadcms/translations: 3.56.0
  @payloadcms/ui/shared: 3.56.0
  react: 19.1.3
  react-dom: 19.1.3
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.3.0: Wed Jan 28 20:49:24 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T8132
  Available memory (MB): 32768
  Available CPU cores: 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea: uiRelated to the admin panel.stalestatus: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions