Skip to content
Snippets Groups Projects
Commit d8f59025 authored by permcu's avatar permcu
Browse files

Do not mutate topic if unchanged

parent e2814e04
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
Pipeline #169063 failed
......@@ -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 ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment