File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export default class BrowserCell extends Component {
131
131
} else if ( this . props . type === 'Object' || this . props . type === 'Bytes' ) {
132
132
this . copyableValue = content = JSON . stringify ( this . props . value ) ;
133
133
} else if ( this . props . type === 'File' ) {
134
- const fileName = this . props . value . url ( ) ? getFileName ( this . props . value ) : 'Uploading\u2026' ;
134
+ const fileName = this . props . value ? this . props . value . url ( ) ? getFileName ( this . props . value ) : this . props . value . name ( ) : 'Uploading\u2026' ;
135
135
content = < Pill value = { fileName } fileDownloadLink = { this . props . value . url ( ) } shrinkablePill /> ;
136
136
this . copyableValue = fileName ;
137
137
} else if ( this . props . type === 'ACL' ) {
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ export default class EditRowDialog extends React.Component {
352
352
break ;
353
353
case 'File' :
354
354
let file = selectedObject [ name ] ;
355
- let fileName = file && file . url ( ) ? getFileName ( file ) : '' ;
355
+ let fileName = file ? file . url ( ) ? getFileName ( file ) : file . name ( ) : '' ;
356
356
inputComponent = (
357
357
< div className = { [ styles . editRowDialogFileCell ] } >
358
358
{ file && < Pill value = { fileName } fileDownloadLink = { file . url ( ) } /> }
You can’t perform that action at this time.
0 commit comments