diff options
-rw-r--r-- | lib/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/search.js b/lib/search.js index 700da2f10..fdc1c8b07 100644 --- a/lib/search.js +++ b/lib/search.js @@ -85,7 +85,7 @@ function stripData (data) { }) , url: !Object.keys(data.versions || {}).length ? data.url : null , keywords: data.keywords || [] - , version: Object.keys(data.versions)[0] || [] + , version: Object.keys(data.versions || {})[0] || [] , time: data.time && data.time.modified && (new Date(data.time.modified).toISOString() |