Skip to content

[v8]: columnVisibility doesn't work when accessorKey is a nested field #4621

Answered by jdhrivas
simplecommerce asked this question in Q&A
Discussion options

You must be logged in to vote

That was great advise! Thanks! I console.log my columnVisibility of my view columns component.

and notice the id was "address_city". Now my initial state is set like this and it works!

setColumnVisibility({
      id: false,
      created: false,
      updated: false,
      address_street1: false,
      address_city: false,
      address_state: false,
      address_postal: false,
    })

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simplecommerce
Comment options

@jdhrivas
Comment options

Answer selected by simplecommerce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants