Merge pull request #18200 from liviuconcioiu/18196
Fix #18196 - Check if importNotification is not null
This commit is contained in:
commit
f128ee9af4
@ -16,9 +16,11 @@ function changePluginOpts () {
|
||||
$('#' + selectedPluginName + '_options').fadeIn('slow');
|
||||
|
||||
const importNotification = document.getElementById('import_notification');
|
||||
importNotification.innerText = '';
|
||||
if (selectedPluginName === 'csv') {
|
||||
importNotification.innerHTML = '<div class="alert alert-info mb-0 mt-3" role="alert">' + Messages.strImportCSV + '</div>';
|
||||
if (importNotification) {
|
||||
importNotification.innerText = '';
|
||||
if (selectedPluginName === 'csv') {
|
||||
importNotification.innerHTML = '<div class="alert alert-info mb-0 mt-3" role="alert">' + Messages.strImportCSV + '</div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user