Skip to content

Commit

Permalink
fix(asana): Fix project auto-picker
Browse files Browse the repository at this point in the history
Closes #2236
  • Loading branch information
nunofmn authored and Alissonsz committed Oct 3, 2023
1 parent 94ce243 commit fcf348f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/content/asana.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
Expand Down

0 comments on commit fcf348f

Please sign in to comment.