Pass empty array instead of null to rbac list

The DataListToolbar component expects an array for additional controls
in all cases. When there's no controls to pass into the toolbar,
provide an empty array to avoid type-related errors.
This commit is contained in:
Jake McDermott
2020-02-26 13:19:21 -05:00
parent 43cce83ba1
commit bd30951a4f

View File

@@ -203,7 +203,7 @@ class ResourceAccessList extends React.Component {
onClick={this.handleAddOpen}
/>,
]
: null
: []
}
/>
)}