Skip to content

Commit 82797dc

Browse files
committed
AC-2080: Reverted refactoring causing functional test failure
1 parent 08f5b85 commit 82797dc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/Integration/view/adminhtml/web/js/integration.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,9 @@ define([
363363
ajaxUrl = url[dialog].replace(':id', integrationId).replace(':isReauthorize', isReauthorize);
364364

365365
try {
366-
let html = $(ctx).parents('tr').find('.col-name').html();
367-
368-
html = html.trim();
369366
// Get integration name either from current element or from neighbor column
370-
integrationName = $(ctx).attr('data-row-name') || html;
367+
integrationName = $(ctx).attr('data-row-name') ||
368+
$(ctx).parents('tr').find('.col-name').html().trim(); // eslint-disable-line jquery-no-trim
371369

372370
if (integrationName.indexOf('<span') > -1) {
373371
// Remove unsecure URL warning from popup window title if it is present

0 commit comments

Comments
 (0)