We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5e3b7b commit 6cd6b70Copy full SHA for 6cd6b70
src/core/fm/content/item/index.jsx
@@ -152,7 +152,7 @@ export default class Item extends Component {
152
excerpt = () => {
153
const basename = this.props.item.basename;
154
const max = 11;
155
- return basename.split('').length > max ? this.props.item.filename.substr(0, max) + '...' + this.props.item.extension : basename;
+ return basename.split('').length > max ? this.props.item.filename.substr(0, max) + '...' + ( this.props.item.is_dir ? '' : this.props.item.extension ) : basename;
156
};
157
158
render = () => {
0 commit comments