@schedule-x/react
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -48,3 +48,3 @@ 'use strict'; | ||
function useCalendarApp(config, plugins) { | ||
const [calendarApp] = react.useState(() => calendar.createCalendar(config, plugins || [])); | ||
const [calendarApp] = react.useState(() => calendar.createCalendar(config, plugins)); | ||
return calendarApp; | ||
@@ -56,3 +56,3 @@ } | ||
if (typeof window !== 'undefined') { | ||
setCalendarApp(calendar.createCalendar(config, plugins || [])); | ||
setCalendarApp(calendar.createCalendar(config, plugins)); | ||
} | ||
@@ -59,0 +59,0 @@ }, []); |
@@ -46,3 +46,3 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime'; | ||
function useCalendarApp(config, plugins) { | ||
const [calendarApp] = useState(() => createCalendar(config, plugins || [])); | ||
const [calendarApp] = useState(() => createCalendar(config, plugins)); | ||
return calendarApp; | ||
@@ -54,3 +54,3 @@ } | ||
if (typeof window !== 'undefined') { | ||
setCalendarApp(createCalendar(config, plugins || [])); | ||
setCalendarApp(createCalendar(config, plugins)); | ||
} | ||
@@ -57,0 +57,0 @@ }, []); |
@@ -18,3 +18,3 @@ { | ||
"types": "dist/types/index.d.ts", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"type": "module", | ||
@@ -21,0 +21,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
13378