Closed Sau1707 closed 1 year ago
getCelebrationsList = (type)=>{ const celebrationModels = uw.MM.getModels().Celebration; const triumphs = Object.values(celebrationModels).filter((celebration)=>celebration.attributes.celebration_type === type).map((triumph)=>triumph.attributes.town_id); return triumphs; }
If there are no celebrations the celebrationModels it's null and raise an error
should be fixed
If there are no celebrations the celebrationModels it's null and raise an error