mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Do not error if there is no data on Google Analytics + Sort
This commit is contained in:
@@ -112,6 +112,15 @@ export class GoogleAnalytics implements INodeType {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
returnData.sort((a, b) => {
|
||||
const aName= a.name.toLowerCase();
|
||||
const bName= b.name.toLowerCase();
|
||||
if (aName < bName) { return -1; }
|
||||
if (aName > bName) { return 1; }
|
||||
return 0;
|
||||
});
|
||||
|
||||
return returnData;
|
||||
},
|
||||
// Get all the views to display them to user so that he can
|
||||
|
||||
Reference in New Issue
Block a user