Skip to content

Commit

Permalink
feat(#384): make summary prop optional (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher authored Dec 1, 2021
1 parent 79b838e commit 9c33d82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-papayas-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"druxt": minor
---

Make summary prop optional on DruxtDebug component
6 changes: 4 additions & 2 deletions packages/druxt/src/components/DruxtDebug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
*/
summary: {
type: String,
required: true,
default: 'Debug',
},
},
Expand All @@ -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,
},
};
</script>
Expand Down

0 comments on commit 9c33d82

Please sign in to comment.