diff --git a/server/src/main/resources/assets/js/grapes-webApp.js b/server/src/main/resources/assets/js/grapes-webApp.js
index <HASH>..<HASH> 100644
--- a/server/src/main/resources/assets/js/grapes-webApp.js
+++ b/server/src/main/resources/assets/js/grapes-webApp.js
@@ -178,7 +178,7 @@ function displayModuleLicenseOptions(){
 	getModuleLicenses();
 
 	$(".export").on('click', function (event) {
-        exportTableToCSV.apply(this, [$('#table'), 'export.csv']);
+        exportTableToCSV.apply(this, [$('table'), 'export.csv']);
     });
 
 }
@@ -1229,7 +1229,7 @@ function getArtifactLicenses(){
 	var html = "<table class=\"table table-bordered table-hover\" id=\"table-of-result\">\n";
 	html += "<thead><tr><td>Licenses</td></tr></thead>\n";
 	html += "<tbody>\n";
-    
+
 	$.ajax({
             type: "GET",
             url: "/artifact/"+ gavc + "/licenses",
@@ -1572,4 +1572,4 @@ function updateProduct(){
     setTimeout(function(){
         getProductOverview();
     }, 500);
-}
\ No newline at end of file
+}
Fixing the issue of license table generating an empty CSV export file