Null check

pull/146/head
cagataycivici 2020-01-13 13:07:32 +03:00
parent 5244372d72
commit 664701e23d
1 changed files with 7 additions and 2 deletions

View File

@ -84,8 +84,13 @@ const EmptySlotTemplate = {
}
},
render(createElement, context) {
const content = context.props.template();
return [content];
if (context.props.template) {
const content = context.props.template();
return [content];
}
else {
return null;
}
}
}