lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.9.4 vs lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.9.6.beta

- old
+ new

@@ -259,10 +259,10 @@ function fetchStashes() { $.ajax({ type: 'GET', url: '/stashes.json', success: function(data, textStatus, xhr) { - if (data.legnth > 0) { + if (data.length > 0) { $.ajax({ type: 'POST', url: '/stashes.json', data: JSON.stringify(data), success: function(stash_data, textStatus, xhr) {