TagSpaces is an offline, open source, document manager with tagging support
fixing issue with the file types collection
Iliane80d2fe463ad
diff --git a/data/js/options.ui.js b/data/js/options.ui.jsindex 883c63230..9c5e94023 100644--- a/data/js/options.ui.js+++ b/data/js/options.ui.js@@ -149,11 +149,14 @@ define(function(require, exports, module) {function collectSupportedFileTypesData() {var data = new Array();$('#fileTypesList').children().each( function(index, element) {- data.push({- "type": $(element).find("input").val(),- "viewer": $(element).find(".ftviewer").val(),- "editor": $(element).find(".fteditor").val(),- });+ // Skiping the first line with the descriptions+ if(index > 0) {+ data.push({+ "type": $(element).find("input").val(),+ "viewer": $(element).find(".ftviewer").val(),+ "editor": $(element).find(".fteditor").val(),+ });+ }});return data;