make codacy-bot happy again!
This commit is contained in:
parent
9dcf3959a3
commit
6ec3a8f8ee
1 changed files with 2 additions and 2 deletions
|
@ -50,10 +50,10 @@ class FileList extends React.PureComponent {
|
||||||
title: fileInfos =>
|
title: fileInfos =>
|
||||||
fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
||||||
const getFileTitle = fileInfo => {
|
const getFileTitle = fileInfo => {
|
||||||
const { value, metadata, claim_name, name } = fileInfo;
|
const { value, metadata, name, claim_name: claimName } = fileInfo;
|
||||||
if (metadata) {
|
if (metadata) {
|
||||||
// downloaded claim
|
// downloaded claim
|
||||||
return metadata.title || claim_name;
|
return metadata.title || claimName;
|
||||||
} else if (value) {
|
} else if (value) {
|
||||||
// published claim
|
// published claim
|
||||||
const { title } = value.stream.metadata;
|
const { title } = value.stream.metadata;
|
||||||
|
|
Loading…
Add table
Reference in a new issue