Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Preview token variable undefined when upgrading to Payload 1.11.3

default discord avatar
mvdvelast year
3

Hi All, I checked the release logs but could not find an explanation for this behavior: After upgrading to 1.11.3 the token within a collection admin.preview function is undefined. It is working on 1.11.2. Has something changed within the API or is this a bug?

  • default discord avatar
    mrkbrndlast year

    Ran into the same problem. In my case what fixed it was logging out and in. I was working on the preview function in dev mode, after a hot-reload (when I saved my code) it gave me undefined. Relogging fixed this.

  • default discord avatar
    hayskapoylast year

    I am also running into this issue. It's weird that the site continue to function while the token is already undefined.



    I created a pull request to actually fix the issue. See

    https://github.com/payloadcms/payload/pull/3219

    I also added a temporary fix while the bug is not yet fixed

  • default discord avatar
    mvdvelast year

    Thanks, the issue has been resolved in

    https://github.com/payloadcms/payload/pull/3279
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.