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

Commit b103e1d

Browse files
committed
get rid of key prop error
1 parent d13017e commit b103e1d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/views/Database.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,25 +141,25 @@ function ProgramView () {
141141
/>
142142
: appState.entries.map(e => {
143143
return (
144-
<>
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>
147-
</Pane>
148-
<Pane key={e.hash + '-3'}>
149-
{entry && entry.hash === e.hash
150-
? <Pre
151-
key={entry.hash}
152-
maxWidth={majorScale(96)}
153-
overflow='auto'
154-
fontFamily='Source Code Pro'
155-
marginY={majorScale(1)}
156-
paddingY={majorScale(1)}
157-
backgroundColor='#FEF8E7'
158-
onClick={() => handleSelect(null)}
159-
>{JSON.stringify(e, null, 2)}</Pre>
160-
: ''}
161-
</Pane>
162-
</>
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>
147+
</Pane>
148+
<Pane key={e.hash + '-3'}>
149+
{entry && entry.hash === e.hash
150+
? <Pre
151+
key={entry.hash}
152+
maxWidth={majorScale(96)}
153+
overflow='auto'
154+
fontFamily='Source Code Pro'
155+
marginY={majorScale(1)}
156+
paddingY={majorScale(1)}
157+
backgroundColor='#FEF8E7'
158+
onClick={() => handleSelect(null)}
159+
>{JSON.stringify(e, null, 2)}</Pre>
160+
: ''}
161+
</Pane>
162+
</div>
163163
)
164164
})
165165
}

0 commit comments

Comments
 (0)