Skip to content

Commit 4c920f2

Browse files
authored
Merge pull request #435 from CodeForPhilly/fix/issue-432-empty-RFM-list
Fixed bug where RFM list was empty upon return from 360 View
2 parents b92def8 + 62186f8 commit 4c920f2

File tree

1 file changed

+3
-4
lines changed
  • src/client/src/pages/RFM

1 file changed

+3
-4
lines changed

src/client/src/pages/RFM/RFM.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ export function RFM(props) {
6464
let state = JSON.parse(_.get(history, 'location.state'));
6565
let stateLabel = state.selectedLabel;
6666
if (stateLabel) {
67-
await setSelectedLabel(stateLabel)
68-
await handleLabelChange({target: {value: stateLabel}});
67+
await handleLabelChange(stateLabel);
6968
}
7069
} catch {
7170
}
@@ -136,8 +135,8 @@ export function RFM(props) {
136135
</Grid>
137136
<Grid container item direction="column" spacing={2}>
138137
{
139-
_.map(labels, labelData => {
140-
return <Grid item>
138+
labels.map((labelData, index) => {
139+
return <Grid item key={index}>
141140
<Button onClick={() => handleLabelChange(labelData)}
142141
style={{
143142
backgroundColor: labelData.rfm_color,

0 commit comments

Comments
 (0)