Problem/Motivation
I noticed in the "FluidUI Settings" Form (located at /admin/config/fluidui/adminsettings) that if I check the checkboxes "Display preferences toolbox on admin pages" and "Enable the FluidUI widget as a Block" at the same time, and if I go to the node pages, the widget tries to render twice and we get an error:


If I go the admin pages, I don't see any issues at all
Steps to reproduce
Read instructions above
Proposed resolution
Add a condition for not rendering the admin widget when we load the node pages, and not load the block widget when visiting the admin pages.
Remaining tasks
N/A
User interface changes
Read information above.
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| widget-double-render2.png | 104.36 KB | danrod | |
| widget-double-render.png | 91.29 KB | danrod |
Issue fork fluidui-3538593
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
danrodI created a MR for this, some external testing would be nice, but I did some tests myself and worked as expected.
Moving it to "Needs Review" hoping that someone could help me testing this.
Comment #4
danrodComment #5
danrodComment #6
danrodComment #7
danrodComment #8
danrodThis needs to be applied to all branches
Comment #9
danrodComment #11
danrodFor the 2.0.x branch, there's an error in the tests jobs, but I'll look into in in another issue. https://git.drupalcode.org/project/fluidui/-/merge_requests/43
Comment #13
danrod