File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
131131 } else if ( this . props . type === 'Object' || this . props . type === 'Bytes' ) {
132132 this . copyableValue = content = JSON . stringify ( this . props . value ) ;
133133 } 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' ;
135135 content = < Pill value = { fileName } fileDownloadLink = { this . props . value . url ( ) } shrinkablePill /> ;
136136 this . copyableValue = fileName ;
137137 } 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 {
352352 break ;
353353 case 'File' :
354354 let file = selectedObject [ name ] ;
355- let fileName = file && file . url ( ) ? getFileName ( file ) : '' ;
355+ let fileName = file ? file . url ( ) ? getFileName ( file ) : file . name ( ) : '' ;
356356 inputComponent = (
357357 < div className = { [ styles . editRowDialogFileCell ] } >
358358 { file && < Pill value = { fileName } fileDownloadLink = { file . url ( ) } /> }
You can’t perform that action at this time.
0 commit comments