mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: table accessor should handle dots (#2863)
This commit is contained in:
parent
6be21fc1bd
commit
8e5aeff1a7
@ -260,11 +260,12 @@ export const ProjectFeatureToggles = ({
|
||||
sortType: 'date',
|
||||
minWidth: 120,
|
||||
},
|
||||
...environments.map(name => ({
|
||||
...environments.map((name: string) => ({
|
||||
Header: loading ? () => '' : name,
|
||||
maxWidth: 90,
|
||||
id: `environments.${name}`,
|
||||
accessor: `environments.${name}.enabled`,
|
||||
accessor: (row: ListItemType) =>
|
||||
row.environments[name]?.enabled,
|
||||
align: 'center',
|
||||
Cell: ({
|
||||
value,
|
||||
|
Loading…
Reference in New Issue
Block a user