From fcf348fbd79403f16e58253380528193ec414f3a Mon Sep 17 00:00:00 2001 From: Nuno Nogueira Date: Wed, 27 Sep 2023 12:16:36 +0100 Subject: [PATCH] fix(asana): Fix project auto-picker Closes #2236 --- src/content/asana.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content/asana.js b/src/content/asana.js index 2283c4819..8e385cb82 100644 --- a/src/content/asana.js +++ b/src/content/asana.js @@ -43,7 +43,10 @@ togglbutton.render('.SpreadsheetRow .SpreadsheetTaskName:not(.toggl)', { observe const descriptionSelector = () => taskNameCell.querySelector('textarea').textContent.trim(); const projectHeaderSelector = () => { // Try to look for for page project title instead. - const projectHeader = document.querySelector('.TopbarPageHeaderStructure.ProjectPageHeader .TopbarPageHeaderStructure-title'); + const projectHeader = document.querySelector( + '.TopbarPageHeaderStructure.ProjectPageHeader .ProjectPageHeaderProjectTitle-shadow', + ); + if (!projectHeader) { return ''; }