Unverified Commit 51c2d0b3 authored by Michael Underwood's avatar Michael Underwood Committed by GitHub
Browse files

Merge pull request #218 from nicksellen/fix/slots-default-not-a-function

Check if $slots.default is defined before calling
parents 98d83a34 14221dbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ export default {
    return h(
      "div",
      { style: { width: "100%", height: "100%" }, ref: "root" },
      this.ready ? this.$slots.default() : {}
      this.ready && this.$slots.default ? this.$slots.default() : {}
    );
  },
};