mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: dot in context fields (#4434)
This commit is contained in:
parent
168b31a353
commit
1fe32e0b96
@ -40,7 +40,9 @@ export const PlaygroundEnvironmentDiffTable = ({
|
||||
const contextFieldsHeaders = Object.keys(firstContext).map(
|
||||
contextField => ({
|
||||
Header: capitalizeFirst(contextField),
|
||||
accessor: `${environments[0]}.context.${contextField}`,
|
||||
accessor: (
|
||||
row: Record<string, { context: Record<string, unknown> }>
|
||||
) => row[environments[0]]['context'][contextField],
|
||||
minWidth: 160,
|
||||
Cell: HighlightCell,
|
||||
})
|
||||
|
@ -33,7 +33,8 @@ export const PlaygroundEnvironmentTable = ({
|
||||
const dynamicHeaders = Object.keys(features[0].context).map(
|
||||
contextField => ({
|
||||
Header: capitalizeFirst(contextField),
|
||||
accessor: `context.${contextField}`,
|
||||
accessor: (row: { context: Record<string, unknown> }) =>
|
||||
row['context'][contextField],
|
||||
minWidth: 160,
|
||||
Cell: HighlightCell,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user