fix console errors and warnings

This commit is contained in:
Unknown
2018-11-29 10:43:51 +00:00
parent a82da33d1a
commit 70dbcd96e0
2 changed files with 11 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ class Toolbar extends React.Component {
> >
<svg x="0px" y="0px" width="30px" height="20px" viewBox="0 0 30 20" enableBackground="new 0 0 30 20"> <svg x="0px" y="0px" width="30px" height="20px" viewBox="0 0 30 20" enableBackground="new 0 0 30 20">
<path d="M24.615,6.793H5.385c-2.761,0-3,0.239-3,3v0.414 <path d="M24.615,6.793H5.385c-2.761,0-3,0.239-3,3v0.414
c0,2.762,0.239,3,3,3h7.621l1.996,2.432l1.996-2.432h7.618c2.762,0,3-0.238,3-3V9.793C27.615,7.032,27.377,6.793,24.615,6.793z"/> c0,2.762,0.239,3,3,3h7.621l1.996,2.432l1.996-2.432h7.618c2.762,0,3-0.238,3-3V9.793C27.615,7.032,27.377,6.793,24.615,6.793z"/>
</svg> </svg>
</button> </button>
<button <button
@@ -86,7 +86,6 @@ class Toolbar extends React.Component {
</button> </button>
</div> </div>
); );
return (<div/>)
} }
renderBottomActions() { renderBottomActions() {

View File

@@ -192,8 +192,9 @@ export const selectTagList = createSelector(
}); });
} }
} }
if (tags && tags !== undefined) {
if (tags.key && tags.children) traverseNode(tags, depth) if (tags.key && tags.children) traverseNode(tags, depth)
}
return tagList; return tagList;
} }
) )