toaster: fix typo in arguments for libtoaster.js function
PATCH 1/1 toaster: fix typo in arguments for libtoaster.js function
From: Elliot Smith <[email protected]>
The function for flattening the targets of a previous build to a space-separated list references prev and next arguments which aren't in the function signature. This prevents the "Rebuild" buttons (in the most-recent build section) from working.
Fix the typo so that the buttons work again.
Signed-off-by Elliot Smith <[email protected]>
Signed-off-by Michael Wood <[email protected]>
--- lib/toaster/toastergui/static/js/libtoaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/toaster/toastergui/static/js/libtoaster.js +1 -1
@@ -94,7 +94,7 @@ var libtoaster = (function () { /* Flatten the array of targets into a space spearated list */ if (targets instanceof Array){ - targets = targets.reduce(function(prevV, nextV){ + targets = targets.reduce(function(prev, next){ return prev + ' ' + next; }); }
Signature · 1 line
2.7.4