From bbf7016b1f95b6cdb38a942600d0e9fd964847dc Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Mon, 5 Apr 2021 23:59:26 +0200 Subject: [PATCH] Fix ListView name substitution with Webpack --- src/GbFullCalendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GbFullCalendar.js b/src/GbFullCalendar.js index 2447347..5c41f8e 100644 --- a/src/GbFullCalendar.js +++ b/src/GbFullCalendar.js @@ -92,9 +92,9 @@ export default class GbFullCalendar extends Component { const data = this.calendarRef.current.getApi().getCurrentData(); const viewSpec = data.viewSpecs[arg.view.type]; let innerContent; - if (viewSpec.component.name === ListView.name) { + if (viewSpec.component === ListView) { // ListView has other content than regular views. - // See: https://github.com/fullcalendar/fullcalendar-react/issues/12#issuecomment-665807912 + // See: https://github.com/fullcalendar/fullcalendar/issues/5927 innerContent = this.renderListInnerContent( arg ); } else { innerContent = this.renderInnerContent( arg );