FIX: ensures we have outlet args
This commit is contained in:
parent
e48f49a4f1
commit
fd179ae2ee
|
|
@ -5,7 +5,11 @@ function initializeEventBuilder(api) {
|
|||
const currentUser = api.getCurrentUser();
|
||||
|
||||
api.onToolbarCreate(toolbar => {
|
||||
if (!currentUser || !currentUser.can_create_event) {
|
||||
if (
|
||||
!currentUser ||
|
||||
!currentUser.can_create_event ||
|
||||
!toolbar.context.outletArgs
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue