Skip to content

Commit

Permalink
fix: Cannot remove the first segment for each gist hackjutsu#218
Browse files Browse the repository at this point in the history
  • Loading branch information
hackjutsu committed Oct 10, 2017
1 parent 3571f3e commit aba4302
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/containers/gistEditorForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function renderGistFileHeader (member, fields, index) {
placeholder='file name... (e.g. snippet.js)'
validate={ required }/>
<a href='#'
className={ index === 0 ? 'gist-editor-customized-tag-hidden' : 'gist-editor-customized-tag' }
className={ fields.length === 1 ? 'gist-editor-customized-tag-hidden' : 'gist-editor-customized-tag' }
onClick={ () => fields.remove(index) }>#remove</a>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion license.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"[email protected]10": {
"[email protected]11": {
"licenses": "MIT",
"repository": "https://github.com/hackjutsu/Lepton",
"publisher": "CosmoX",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Lepton",
"version": "1.4.3-alpha-10",
"version": "1.4.3-alpha-11",
"description": "AWESOME Gist client for everyone, everywhere!",
"productName": "Lepton",
"main": "main.js",
Expand Down

0 comments on commit aba4302

Please sign in to comment.