diff --git a/.changeset/unlucky-papayas-pull.md b/.changeset/unlucky-papayas-pull.md new file mode 100644 index 000000000..c68329b99 --- /dev/null +++ b/.changeset/unlucky-papayas-pull.md @@ -0,0 +1,5 @@ +--- +"druxt": minor +--- + +Make summary prop optional on DruxtDebug component diff --git a/packages/druxt/src/components/DruxtDebug.vue b/packages/druxt/src/components/DruxtDebug.vue index 79c15885a..53e99211f 100644 --- a/packages/druxt/src/components/DruxtDebug.vue +++ b/packages/druxt/src/components/DruxtDebug.vue @@ -21,7 +21,7 @@ export default { */ summary: { type: String, - required: true, + default: 'Debug', }, }, @@ -42,7 +42,9 @@ export default { * * @return {string} */ - title: ({ module, summary }) => `[${module.$options._componentTag}] ${summary}`, + title: ({ module, summary }) => module.$options._componentTag + ? `[${module.$options._componentTag}] ${summary}` + : summary, }, };