We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fabc2b9 commit 5e5cef0Copy full SHA for 5e5cef0
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) {
+ 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