Skip to content

Commit d704e69

Browse files
authored
fix: Inline comment creation (#2214)
Provides proper default prop values for `CommentEditor` components that, when one of which was missing, prevented inline comment creation
1 parent 703c695 commit d704e69

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

client/src/components/NewInlineCommentComponent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
style="border-color: rgb(82, 11, 189)"
77
>
88
<comment-editor
9+
comment-type="InlineComment"
910
v-bind="props"
1011
@submit="$emit('submit')"
1112
@cancel="$emit('cancel')"
@@ -20,7 +21,7 @@ const props = defineProps({
2021
commentType: {
2122
type: String,
2223
required: false,
23-
default: null
24+
default: "InlineComment"
2425
},
2526
parent: {
2627
type: Object,

client/src/components/forms/CommentEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const props = defineProps({
113113
commentType: {
114114
type: String,
115115
required: false,
116-
default: null
116+
default: ""
117117
},
118118
parent: {
119119
type: Object,

0 commit comments

Comments
 (0)