mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +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