Skip to content

Commit

Permalink
Check if importNotification is not null
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
  • Loading branch information
liviuconcioiu committed Mar 2, 2023
1 parent 4c79495 commit 6324589
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/src/import.js
Expand Up @@ -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>';
}
}
}

Expand Down

0 comments on commit 6324589

Please sign in to comment.