Skip to content
Snippets Groups Projects
Commit 49ed26be authored by dcz's avatar dcz
Browse files

this.selectedLus.length > 0 bugfix.

parent 27a015ea
Branches
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@
},
attach_examples() {
if (this.frame_in_progress) {
if (this.selectedLus) {
if (this.selectedLus && this.selectedLus.length > 0) {
const examplesSelect = function () {
return '<div class="attach-examples-table-wrapper-scroll-y attach-examples-custom-scrollbar"><table id="attach-examples" class="table table-bordered table-striped mb-0"><thead><tr class="font-weight-bold"><th></th><th>Zdanie</th><th>Źródło</th><th>Opinia</th></tr></thead>' + this.examples.map(example => {
return `<tr><td><input type="checkbox" ${this.selectedLus && example.lu_ids.includes(this.selectedLus[0].id) ? 'checked' : ''} name="lus" value="${example.id}" /></td><td>${example.sentence}</td><td>${example.source}</td><td>${example.opinion}</td></tr>`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment