mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
fix warning message display on subsequently loaded news
This commit is contained in:
@ -83,7 +83,8 @@
|
||||
so it's still reasonable #}
|
||||
<div
|
||||
{% if news is integer or news is string %}
|
||||
x-data="{ nbEvents: nbModerated() }"
|
||||
x-data="{ nbEvents: 0 }"
|
||||
x-init="nbEvents = await nbToModerate()"
|
||||
{% else %}
|
||||
x-data="{ nbEvents: {{ news.dates.count() }} }"
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user