Skip to content

Commit b8beacc

Browse files
committed
fix(asana): spreadsheet selector on projects and tags
1 parent 793f0e1 commit b8beacc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/asana.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,17 @@ togglbutton.render(
7474
}
7575

7676
// There can be multiple projects, but we can't support trying to match multiple yet.
77-
const firstProject = projectCell.querySelector('.Pill')
77+
const firstProject = projectCell.querySelector(
78+
'.SpreadsheetPotsCell-potPill',
79+
)
7880
return firstProject
7981
? firstProject.textContent.trim()
8082
: projectHeaderSelector()
8183
}
8284

8385
const tagsSelector = () => {
8486
const tags = container.querySelectorAll(
85-
'.SpreadsheetTaskRow-tagsCell .Pill',
87+
'.SpreadsheetTaskRow-tagsCell .SpreadsheetPotsCell-potPill',
8688
)
8789
return [...tags].map((tag) => tag.textContent.trim())
8890
}

0 commit comments

Comments
 (0)