[ZBX-25539] [Top hosts] TypeError "Cannot read properties of null" appears on image preview/hover when widget contains two columns with "show thumbnail" option Created: 2024 Nov 13  Updated: 2025 Feb 07  Resolved: 2025 Feb 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 7.2.0beta1
Fix Version/s: 7.0.10rc1, 7.2.4rc1, 7.4.0alpha1

Type: Problem report Priority: Trivial
Reporter: Kirils Seve Assignee: Robert Gontarski
Resolution: Fixed Votes: 0
Labels: binary, image, typeerror
Remaining Estimate: Not Specified
Time Spent: 28.75h
Original Estimate: Not Specified

Attachments: GIF File console_error.gif     PNG File image-2024-11-13-14-08-59-066.png     PNG File image-2024-11-13-14-09-13-536.png     PNG File image-2024-11-13-14-16-37-993.png     PNG File item-history-column-config.png     PNG File item-history-config.png     PNG File item-history-error.png    
Issue Links:
Causes
caused by ZBXNEXT-9199 Top hosts widget "Column" control Closed
Team: Team B
Sprint: S25-W2/3, S25-W4/5, S25-W6/7
Story Points: 2

 Description   

Precondition:

Steps to reproduce:

  • Create top hosts widget with two identical columns
    -) Item => binary item
    -) Display item value as => Binary
    -) Show thumbnail => true
    e.g.

  • Save configuration
  • Try to open the image
  • Check browser console

Result: TypeError "Cannot read properties of null" appears.

class.widget.js?1731410281:279 Uncaught TypeError: Cannot read properties of null (reading 'style')
    at class.widget.js?1731410281:279:16
    at Array.forEach (<anonymous>)
    at ResizeObserver.<anonymous> (class.widget.js?1731410281:274:14)
(anonymous)	@	class.widget.js?1731410281:279
(anonymous)	@	class.widget.js?1731410281:274


Expected: No errors should appear.



 Comments   
Comment by Robert Gontarski [ 2025 Jan 09 ]

Implemented in development branch

Comment by Robert Gontarski [ 2025 Feb 05 ]

Available in:

Generated at Sat Apr 26 12:07:40 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.