Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 55db765

Browse files
committed
actually fix key prop error
1 parent 591bcb6 commit 55db765

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/views/Database.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ function ProgramView () {
139139
delay={100}
140140
marginY={majorScale(2)}
141141
/>
142-
: appState.entries.map(e => {
142+
: appState.entries.map((e, idx) => {
143+
console.log(e)
143144
return (
144-
<div key={e.hash}>
145-
<Pane key={e.hash + '-1'}>
146-
<Text key={e.hash + '-2'} userSelect='none' cursor='pointer' onClick={() => handleSelect(e)}>{JSON.stringify(e.payload.value, null, 2)}</Text>
145+
<div key={idx}>
146+
<Pane>
147+
<Text userSelect='none' cursor='pointer' onClick={() => handleSelect(e)}>{JSON.stringify(e.payload.value, null, 2)}</Text>
147148
</Pane>
148-
<Pane key={e.hash + '-3'}>
149+
<Pane>
149150
{entry && entry.hash === e.hash
150151
? <Pre
151-
key={entry.hash}
152152
maxWidth={majorScale(96)}
153153
overflow='auto'
154154
fontFamily='Source Code Pro'

0 commit comments

Comments
 (0)