mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: resolve react key errors of fuzzy mode search results
This commit is contained in:
parent
4a705958c4
commit
2d38788ac9
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export const fuzzyMode: ModeShape = {
|
|||
: undefined
|
||||
progress += chunk.length + 1
|
||||
return (
|
||||
<span key={chunk} className={cx({ prefix: index + 1 !== chunks.length })}>
|
||||
<span key={index} className={cx({ prefix: index + 1 !== chunks.length })}>
|
||||
<Highlight match={regexp} text={index + 1 === chunks.length ? chunk : chunk + '/'} />
|
||||
</span>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue