mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Issue 43 - Stop graph appearing if only one result
This commit is contained in:
@@ -18,12 +18,14 @@ function route (app) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
var presentedResults = presentResultList(results.map(presentResult));
|
||||
res.render('task', {
|
||||
task: presentTask(task),
|
||||
results: presentResultList(results.map(presentResult)),
|
||||
results: presentedResults,
|
||||
mainResult: task.lastResult || null,
|
||||
added: (typeof req.query.added !== 'undefined'),
|
||||
running: (typeof req.query.running !== 'undefined'),
|
||||
hasOneResult: (presentedResults.length < 2),
|
||||
isTaskPage: true
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user