Skip to content

Commit 11c0288

Browse files
committed
Updated check to verify both scenes in projectSort
1 parent 5e5cef0 commit 11c0288

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/structural/header/ProjectView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class Project extends React.Component {
373373
* @returns 1 if project a should come before project b, -1 if b should come before a
374374
*/
375375
projectSort = (a,b)=>{
376-
if(a.name) {
376+
if(a.name && b.name) {
377377
if(a.name.toUpperCase() < b.name.toUpperCase())
378378
{
379379
return -1;

0 commit comments

Comments
 (0)