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.

buildColumns not present anymore in newer versions

default discord avatar
lucasdelbel2 years ago
10

How can I create Tables in the newest version of payload? I used to build with buildColumns and passing that to a Table tag. But buildColumns doesn't exist anymore in the newest versions.



@364124941832159242
  • discord user avatar
    jmikrut
    2 years ago

    hey

    @970669344189218836

    let me check into this for ya



    where were you importing

    buildColumns

    from before?

  • default discord avatar
    lucasdelbel2 years ago

    Hey

    @364124941832159242

    ! I'll get you the path, just a sec



    node_modules/payload/dist/admin/components/views/collections/List/buildColumns.js



    this was the file before

  • discord user avatar
    jmikrut
    2 years ago

    and which version were you on when you could import that file successfully?

  • default discord avatar
    lucasdelbel2 years ago

    1.0.12



    a really obsolete one by the way

  • discord user avatar
    jmikrut
    2 years ago

    ha wow i see that



    all good



    would it be this function?



    payload/src/admin/components/elements/TableColumns/buildColumns.tsx

    maybe it moved?



    i gotta dig back into the archives to see what the file within the

    List

    folder was

  • default discord avatar
    lucasdelbel2 years ago

    wow would be great, let me check

  • discord user avatar
    jmikrut
    2 years ago

    ok so it's a bit different



    but the idea is the same



    i just found the original one that you were using

  • default discord avatar
    lucasdelbel2 years ago

    oh ok, yeah I saw it is different, but it looks like it'll work, I'm testing now

  • discord user avatar
    jmikrut
    2 years ago

    nice 👍

  • default discord avatar
    lucasdelbel2 years ago

    thanks

    @364124941832159242
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.