magento / adobe-stock-integration

Magento Adobe Stock integration Community Project.
Open Software License 3.0
60 stars 92 forks source link

Open in Media Gallery action fails if filter is applied #1791

Closed sivaschenko closed 4 years ago

sivaschenko commented 4 years ago

Preconditions

Magento 2.4-develop and ASI 2.1.0-develop Have some images saved from Adobe Stock to Media Gallery

Steps to reproduce (*)

  1. Open Media Gallery
  2. Enter anything to the search field and hit Enter
  3. Select image in the grid
  4. Search Adobe Stock
  5. Expand preview for previously saved image and click "Open in Media Gallery"

Expected result (*)

Adobe Stock panel is closed. The search filter is applied. The image is selected

Actual result (*)

Adobe Stock panel is closed. The search filter is applied. Continuous loader. Error in the console

Uncaught TypeError: Cannot read property 'id' of null
    at UiClass.getId (image.js:98)
    at UiClass.isSelected (image.js:134)
    at UiClass.select (image.js:186)
    at UiClass.selectRecord (actions.js:231)
    at UiClass.<anonymous> (actions.js:183)
    at UiClass.<anonymous> (jquery.js:3417)
    at fire (jquery.js:3238)
    at Object.fireWith [as resolveWith] (jquery.js:3368)
    at done (jquery.js:9846)
    at XMLHttpRequest.callback (jquery.js:10317)
m2-assistant[bot] commented 4 years ago

Hi @sivaschenko. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


Nazar65 commented 4 years ago

probably because of AdobeStockImageAdminUi/view/adminhtml/web/js/components/grid/column/preview/actions.js: LIne180

yolouiese commented 4 years ago

Hello, I tried to replicate this on my end but I can't seem to reproduce the issue. The behavior is the same as the expected result.