Skip to content

Conversation

thet
Copy link
Member

@thet thet commented Nov 16, 2020

Fixes problem with doubling up events when visiting different fullcalendar pages with different urls via pat-inject.

…lem with doubling up events when visiting different fullcalendar pages with different urls via pat-inject
@thet thet requested a review from pilz November 16, 2020 16:56
}

const sources = opts.event.sources || [];
const sources = [...(opts.event.sources || [])];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the actual fix - this copies the values instead of referencing them.

parser.addArgument("url", null);
parser.addArgument("event-sources", [], undefined, true);
parser.addArgument("event-sources-classes", [], undefined, true);
parser.addArgument("event-sources-active", [], undefined, true);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this as this is a too complicated way for an early idea on how to configure multiple calendars. Removed that and simplified the code below a bit.

@pilz pilz merged commit 4149a22 into master Nov 16, 2020
@pilz pilz deleted the scr-702 branch November 16, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants