Fix js error in console log [SCI-8890]

This commit is contained in:
Anton 2023-07-19 09:55:27 +02:00
parent 12dd66b6a6
commit f540b3dc8d
3 changed files with 8 additions and 4 deletions

View file

@ -499,7 +499,9 @@ var ExperimnetTable = {
});
},
updateExperimentToolbar: function() {
if (window.actionToolbarComponent) {
window.actionToolbarComponent.fetchActions({ my_module_ids: this.selectedMyModules });
}
},
selectDate: function($field) {
var datePicker = $field.data('DateTimePicker');

View file

@ -144,9 +144,11 @@
}
function updateButtons() {
if (window.actionToolbarComponent) {
window.actionToolbarComponent.fetchActions({ label_template_ids: rowsSelectedIDs() });
$('.dataTables_scrollBody').css('padding-bottom', `${rowsSelectedIDs().length > 0 ? 68 : 0}px`);
}
}
function reloadTable() {
LABEL_TEMPLATE_TABLE.ajax.reload(null, false);

View file

@ -114,7 +114,7 @@ export default {
}
},
children: function() {
if (this.children.length > 0) {
if (this.children && this.children.length > 0) {
this.childrenExpanded = true;
} else if (this.childrenLoaded) {
this.item.has_children = false;