diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-17 19:16:15 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-17 19:16:15 +0300 |
commit | ca59e0bc05a139fe57d27b62f5e523832a9c0e0a (patch) | |
tree | f8ac4460688f84e023ff3352db9f7847a5729507 /src/components/PollsList | |
parent | 20e5f105db0976b637f5dcad538ac40aa4c2d110 (diff) | |
download | which-ui-ca59e0bc05a139fe57d27b62f5e523832a9c0e0a.tar.gz |
fix: add pollId to key in PollsList
Diffstat (limited to 'src/components/PollsList')
-rw-r--r-- | src/components/PollsList/RenderItem.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/PollsList/RenderItem.tsx b/src/components/PollsList/RenderItem.tsx index 5123bca..beed259 100644 --- a/src/components/PollsList/RenderItem.tsx +++ b/src/components/PollsList/RenderItem.tsx @@ -35,7 +35,7 @@ const RenderItem: React.FC<PropTypes> = React.memo(({ }, [mutate, index, polls]); return ( - <div key={_key} style={style}> + <div key={`${_key}-${poll._id}`} style={style}> <PollCard poll={poll} setPoll={setPoll} /> </div> ); |