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,9 +84,14 @@ const EmptySlotTemplate = {
} }
}, },
render(createElement, context) { render(createElement, context) {
if (context.props.template) {
const content = context.props.template(); const content = context.props.template();
return [content]; return [content];
} }
else {
return null;
}
}
} }
export default { export default {