Skip to content

Commit

Permalink
fix(asana): no more double button (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
askides authored Feb 3, 2025
1 parent 3e50635 commit 42e6af4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/content/asana.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ togglbutton.render(
(element) => {
console.debug('DEBUG: Entering in SpreadsheetRow')

// Due to the way this UI is rendered, we must check for existence of old buttons manually.
if (element.parentNode.querySelector('.toggl-button')) {
return
}

const getDescription = () => {
return element.querySelector('textarea').textContent.trim()
}
Expand Down

0 comments on commit 42e6af4

Please sign in to comment.