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 =>
|
||||
fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
||||
const getFileTitle = fileInfo => {
|
||||
const { value, metadata, claim_name, name } = fileInfo;
|
||||
const { value, metadata, name, claim_name: claimName } = fileInfo;
|
||||
if (metadata) {
|
||||
// downloaded claim
|
||||
return metadata.title || claim_name;
|
||||
return metadata.title || claimName;
|
||||
} else if (value) {
|
||||
// published claim
|
||||
const { title } = value.stream.metadata;
|
||||
|
|
Loading…
Add table
Reference in a new issue