Fixed birthdate interpolation and query.

This commit is contained in:
DebaucheryLibrarian 2020-12-17 03:43:09 +01:00
parent a3306ad4e7
commit d67dca60fc
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ function initActorActions(store, router) {
dateOfBirth
dateOfDeath
age
dateOfBirth
ageFromBirth
ageAtDeath
ethnicity
@ -280,6 +281,7 @@ function initActorActions(store, router) {
name
slug
age
dateOfBirth
ageFromBirth
ageAtDeath
dateOfBirth

View File

@ -107,7 +107,7 @@ function getMostFrequentDate(dates) {
}
function getHighest(items) {
return items.reduce((prevItem, item) => (item > prevItem ? item : prevItem), 0);
return items.reduce((prevItem, item) => (item > prevItem ? item : prevItem), null);
}
function getLongest(items) {