fix(fe/files_panel): breadcrumb part key can not be same
This commit is contained in:
parent
16ff18555a
commit
dfd691c9f0
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ export class FilesPanel extends React.Component<Props, State, {}> {
|
||||||
const breadcrumb = this.props.filesInfo.dirPath.map(
|
const breadcrumb = this.props.filesInfo.dirPath.map(
|
||||||
(pathPart: string, key: number) => {
|
(pathPart: string, key: number) => {
|
||||||
return (
|
return (
|
||||||
<span key={pathPart}>
|
<span key={`${pathPart}-${key}`}>
|
||||||
<a
|
<a
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
this.chdir(this.props.filesInfo.dirPath.slice(0, key + 1))
|
this.chdir(this.props.filesInfo.dirPath.slice(0, key + 1))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue