Don't try to show a tooltip when no title is defined

This commit is contained in:
Tom Hubrecht 2022-10-10 18:20:54 +02:00
parent 3e84c21e00
commit 26cb575a54

View file

@ -129,11 +129,14 @@
progressiveEventRendering: true, progressiveEventRendering: true,
expandRows: true, expandRows: true,
eventDidMount: info => { eventDidMount: info => {
const title = info.event.extendedProps.short_name;
if (title !== undefined) {
new Tooltip(info.el, { new Tooltip(info.el, {
title: info.event.extendedProps.short_name, title: title,
trigger: 'hover', trigger: 'hover',
placement: 'top' placement: 'top'
}); });
}
}, },
viewDidMount: arg => { viewDidMount: arg => {
spinner = new Spinner({ spinner = new Spinner({