mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-25 15:38:56 +00:00
Fix if there's no bins
This commit is contained in:
parent
d85bf7972b
commit
e2fd01d8d4
@ -29,9 +29,7 @@ module.exports = utils.inherit(Object, {
|
||||
if (err) {
|
||||
return fn(err);
|
||||
}
|
||||
if (results.length === 1) {
|
||||
results[0].latest = true;
|
||||
} else {
|
||||
if (results.length > 1) {
|
||||
results[0].latest = false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user