Skip to content

Commit a8759bb

Browse files
committed
add default feedback reason
1 parent e4ceb82 commit a8759bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contentcuration/contentcuration/frontend/channelEdit/views/ImportFromChannels/SearchOrBrowseWindow.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,15 +756,17 @@
756756
},
757757
handleNotRelevantRecommendation(node) {
758758
this.rejectedNode = node;
759+
const type = FeedbackTypeOptions.rejected;
760+
const reason = this.recommendationsFeedback ? this.recommendationsFeedback : type;
759761
const interactionEvent = new RecommendationsInteractionEvent({
760762
recommendation_event_id: this.recommendationsEvent.id,
761763
contentnode_id: node.id,
762764
content_id: node.content_id,
763765
context: {
764766
other_feedback: this.otherFeedback,
765767
},
766-
feedback_type: FeedbackTypeOptions.rejected,
767-
feedback_reason: this.recommendationsFeedback,
768+
feedback_type: type,
769+
feedback_reason: reason,
768770
});
769771
sendRequest(interactionEvent)
770772
.then(() => {

0 commit comments

Comments
 (0)