We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fabc2b9 + 11c0288 commit c712ff8Copy full SHA for c712ff8
1 file changed
src/components/structural/header/ProjectView.js
@@ -373,13 +373,15 @@ class Project extends React.Component {
373
* @returns 1 if project a should come before project b, -1 if b should come before a
374
*/
375
projectSort = (a,b)=>{
376
- if(a.name.toUpperCase() < b.name.toUpperCase())
377
- {
378
- return -1;
379
- }
380
- else if(a.name.toUpperCase() > b.name.toUpperCase())
381
382
- return 1;
+ if(a.name && b.name) {
+ if(a.name.toUpperCase() < b.name.toUpperCase())
+ {
+ return -1;
+ }
+ else if(a.name.toUpperCase() > b.name.toUpperCase())
383
+ return 1;
384
385
}
386
else if(a.updateTime > b.updateTime)
387
{
0 commit comments