diff --git a/src/components/datatable/TableBody.vue b/src/components/datatable/TableBody.vue index 945ab346f..38448df62 100644 --- a/src/components/datatable/TableBody.vue +++ b/src/components/datatable/TableBody.vue @@ -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; + } } }