Skip to content

Commit

Permalink
Fix ListView name substitution with Webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Apr 5, 2021
1 parent 11d448c commit bbf7016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GbFullCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit bbf7016

Please sign in to comment.