From db5a46a3728f98794e41176122d8a4203f4b5d08 Mon Sep 17 00:00:00 2001 From: Renato Date: Thu, 30 Jan 2025 14:49:16 +0100 Subject: [PATCH] fix(asana): no more double button --- src/content/asana.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/asana.js b/src/content/asana.js index 821575d73..9b57c7452 100644 --- a/src/content/asana.js +++ b/src/content/asana.js @@ -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() }