This issue has been created
There is 1 update.
 
 
LiveData Exporter Application / cid:jira-generated-image-avatar-55b3187e-d2e7-41a4-9130-9956d49d86af LDEXP-10 Open

JavaScript error on pages with a Live Data when the exporter panel is registered

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b2ba0d85-be69-4000-8407-a4563fb55fdd Michael Hamann created this issue on 13/Nov/26 10:01
 
Summary: JavaScript error on pages with a Live Data when the exporter panel is registered
Issue Type: cid:jira-generated-image-avatar-55b3187e-d2e7-41a4-9130-9956d49d86af Bug
Affects Versions: 1.1.4
Assignee: Unassigned
Created: 13/Nov/26 10:01
Priority: cid:jira-generated-image-static-minor-89465434-95f5-4a3a-93ad-6a9bca125e2b Minor
Reporter: Michael Hamann
Description:

When the JavaScript of the Live Data Exporter is loaded while a Live Data is being created, the browser console shows:

An issue occurred while initializing a module depending on the localization query {"prefix":"livedata.exporter." …}
TypeError: Cannot read properties of undefined (reading 'find')

The code registering the export panel on the existing Live Data instances reads the panels of each instance, but an instance being created already has its data object while its panels aren't initialized yet. The error also stops the registration for the following Live Data instances of the page; the instance being created still gets the panel, through the xwiki:livedata:instanceCreated event.

It depends on timing, so it doesn't happen on every page load (seen on XWiki 18.4.7 with the Live Data Exporter 1.1.4).

 
 

1 update

 
cid:jira-generated-image-avatar-b2ba0d85-be69-4000-8407-a4563fb55fdd Changes by Michael Hamann on 13/Nov/26 10:01
 
Assignee: Michael Hamann