mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-25 01:22:28 +00:00
fix rendering problem when only one analysis plugin
This fixes https://github.com/gsi-upm/senpy/issues/21
This commit is contained in:
parent
cbeb3adbdb
commit
b00ac82eab
@ -31,6 +31,9 @@ $(document).ready(function() {
|
||||
html="";
|
||||
var availablePlugins = document.getElementById('availablePlugins');
|
||||
plugins = response.plugins;
|
||||
if (! $.isArray(plugins)) {
|
||||
plugins = [plugins]
|
||||
}
|
||||
for (r in plugins){
|
||||
plugin = plugins[r]
|
||||
if (plugin["name"]){
|
||||
|
Loading…
Reference in New Issue
Block a user