cronofy-elements
Advanced tools
Comparing version 1.20.0 to 1.20.1
{ | ||
"name": "cronofy-elements", | ||
"version": "1.20.0", | ||
"version": "1.20.1", | ||
"description": "Fast track scheduling with Cronofy's embeddable UI Elements", | ||
@@ -5,0 +5,0 @@ "main": "build/npm/CronofyElements.js", |
@@ -35,12 +35,14 @@ import React, { useContext, useEffect, useRef } from "react"; | ||
const profilesMarkup = calendars.profiles.map(profile => ( | ||
<CalendarProfiles | ||
key={profile.profile_name} | ||
activeCalendars={calendars.active} | ||
calendars={profile.profile_calendars} | ||
name={profile.profile_name} | ||
service={profile.provider_service} | ||
callbacks={{ add, remove }} | ||
/> | ||
)); | ||
const profilesMarkup = calendars.profiles | ||
.filter(profile => profile.profile_calendars.length > 0) | ||
.map(profile => ( | ||
<CalendarProfiles | ||
key={profile.profile_name} | ||
activeCalendars={calendars.active} | ||
calendars={profile.profile_calendars} | ||
name={profile.profile_name} | ||
service={profile.provider_service} | ||
callbacks={{ add, remove }} | ||
/> | ||
)); | ||
@@ -47,0 +49,0 @@ return ( |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2605804
24234