We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b92def8 + 62186f8 commit 4c920f2Copy full SHA for 4c920f2
src/client/src/pages/RFM/RFM.js
@@ -64,8 +64,7 @@ export function RFM(props) {
64
let state = JSON.parse(_.get(history, 'location.state'));
65
let stateLabel = state.selectedLabel;
66
if (stateLabel) {
67
- await setSelectedLabel(stateLabel)
68
- await handleLabelChange({target: {value: stateLabel}});
+ await handleLabelChange(stateLabel);
69
}
70
} catch {
71
@@ -136,8 +135,8 @@ export function RFM(props) {
136
135
</Grid>
137
<Grid container item direction="column" spacing={2}>
138
{
139
- _.map(labels, labelData => {
140
- return <Grid item>
+ labels.map((labelData, index) => {
+ return <Grid item key={index}>
141
<Button onClick={() => handleLabelChange(labelData)}
142
style={{
143
backgroundColor: labelData.rfm_color,
0 commit comments