Skip to content

Commit

Permalink
TMET-9471. Added case ignoring
Browse files Browse the repository at this point in the history
  • Loading branch information
DViktorF committed Oct 17, 2023
1 parent 8189e3b commit daeb381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/in-page-scripts/integrations/wrike.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Wrike implements WebToolIntegration {
getIssue(issueElement: HTMLElement, source: Source): WebToolIssue {
const issueNameElement = $$.try('wrike-task-title, work-item-title', issueElement); // new design
let issueName = $$.try<HTMLTextAreaElement>('textarea.title-field, textarea.title__field', issueElement).value || issueNameElement.textContent;
let attr = $$.try('work-item-type', issueElement)?.querySelector('svg[aria-label]')?.getAttribute('aria-label');;
if (!attr || !/task/.test(attr)) {
let attr = $$.try('work-item-type', issueElement)?.querySelector('svg[aria-label]')?.getAttribute('aria-label');
if (!attr || !/task/i.test(attr)) {
issueName = "";
}
if (!issueName) {
Expand Down

0 comments on commit daeb381

Please sign in to comment.