Skip to content

Commit

Permalink
Add uniquid on file / folder components to force refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
loicsapone committed Aug 22, 2024
1 parent aa45cc6 commit d797e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/components/Content.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@
<div class="fm-c-content__cards" data-mezcalito--ux-filemanager--filemanager-target="list">
{% for node in content %}
{% if node.isDir() %}
<twig:Mezcalito:FileManager:Folder :storage="storage" :path="node.id" loading="lazy"/>
<twig:Mezcalito:FileManager:Folder :id="[currentPath, node.id, random()]|join('_')" :storage="storage" :path="node.id" loading="lazy"/>
{% else %}
<twig:Mezcalito:FileManager:File :storage="storage" :path="node.id" loading="lazy"/>
<twig:Mezcalito:FileManager:File :id="[currentPath, node.id, random()]|join('_')" :storage="storage" :path="node.id" loading="lazy"/>
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit d797e9c

Please sign in to comment.