mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Fix js error in console log [SCI-8890]
This commit is contained in:
parent
12dd66b6a6
commit
f540b3dc8d
3 changed files with 8 additions and 4 deletions
|
@ -499,7 +499,9 @@ var ExperimnetTable = {
|
|||
});
|
||||
},
|
||||
updateExperimentToolbar: function() {
|
||||
window.actionToolbarComponent.fetchActions({ my_module_ids: this.selectedMyModules });
|
||||
if (window.actionToolbarComponent) {
|
||||
window.actionToolbarComponent.fetchActions({ my_module_ids: this.selectedMyModules });
|
||||
}
|
||||
},
|
||||
selectDate: function($field) {
|
||||
var datePicker = $field.data('DateTimePicker');
|
||||
|
|
|
@ -144,8 +144,10 @@
|
|||
}
|
||||
|
||||
function updateButtons() {
|
||||
window.actionToolbarComponent.fetchActions({ label_template_ids: rowsSelectedIDs() });
|
||||
$('.dataTables_scrollBody').css('padding-bottom', `${rowsSelectedIDs().length > 0 ? 68 : 0}px`);
|
||||
if (window.actionToolbarComponent) {
|
||||
window.actionToolbarComponent.fetchActions({ label_template_ids: rowsSelectedIDs() });
|
||||
$('.dataTables_scrollBody').css('padding-bottom', `${rowsSelectedIDs().length > 0 ? 68 : 0}px`);
|
||||
}
|
||||
}
|
||||
|
||||
function reloadTable() {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue