Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 0bbaaab

Browse files
committed
fixed editing file name in multi-files snippet in list and detail layout
1 parent df2a3db commit 0bbaaab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Every notable changes in each version will be listed in this file.
88

99
- **Interface**: Fixed bug when create new multi-files snippet ([0ba8601](https://github.com/ZeroX-DG/SnippetStore/commit/0ba8601))
1010

11-
- **Interface**: Fixed bug when editing file name in multi-files snippet ([d5cb17c](https://github.com/ZeroX-DG/SnippetStore/commit/d5cb17c))
11+
- **Interface**: Fixed bug when editing file name in multi-files snippet in original layout ([d5cb17c](https://github.com/ZeroX-DG/SnippetStore/commit/d5cb17c))
12+
13+
- **Interface**: Fixed bug when editing file name in multi-files snippet in `list and detail` layout
1214

1315
## Improvement:
1416

browser/render/layouts/list-and-detail/snippet-detail-multi-file/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export default class SnippetDetailMultiFile extends React.Component {
369369
const langMode = CodeMirror.findModeByExtension(
370370
getExtension(file.name)
371371
)
372-
const languageIcon = getLanguageIcon(langMode.name)
372+
const languageIcon = getLanguageIcon(langMode ? langMode.name : 'null')
373373
return (
374374
<li
375375
key={file.key}

0 commit comments

Comments
 (0)