Problem/Motivation
When viewing the logs-page of a user (user/uid/logs) without logs, there is a javascript error: Uncaught TypeError: drupalSettings.entity_activity is undefined
Steps to reproduce
View the logs page of a freshly created user or one without logs.
Proposed resolution
Add a if-statement preventing the error.
Remaining tasks
-
User interface changes
-
API changes
-
Data model changes
-
Issue fork entity_activity-3345146
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
spadxiii commentedComment #4
flocondetoileLooks good. Thanks for reporting and the fix.
Comment #6
flocondetoile