assisrafael / react-bootstrap-utils

React bootstrap library
MIT License
6 stars 6 forks source link

column rendering with empty content in a Table #32

Closed samuelpietra closed 4 years ago

samuelpietra commented 4 years ago

The actions attribute of a Table expects a function or an array of objects, however if a function like below is passed:

function handleActions(shouldRender) {
  if (!shouldRender) {
    return [];
  }

  return [ actions ]
}

A actions column is being rendered with empty content

assisrafael commented 4 years ago

Fixed on v0.22.5.