diff --git a/aleksis/apps/alsijil/frontend/components/documentation/LessonSummary.vue b/aleksis/apps/alsijil/frontend/components/documentation/LessonSummary.vue index 829de58b194b39a129e4da56d27c26226b3d6bd4..14460aa8384b771fa3abba9ee4d29e4398e0cb53 100644 --- a/aleksis/apps/alsijil/frontend/components/documentation/LessonSummary.vue +++ b/aleksis/apps/alsijil/frontend/components/documentation/LessonSummary.vue @@ -63,10 +63,13 @@ export default { }, methods: { saveTopic() { - this.createOrPatch([{ - id: this.documentation.id, - topic: this.topic, - }]); + if (this.topic) { + this.createOrPatch([{ + id: this.documentation.id, + topic: this.topic, + }]); + this.topic = ""; + } }, truncate(str) { return str ?