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 dateOfBirth
dateOfDeath dateOfDeath
age age
dateOfBirth
ageFromBirth ageFromBirth
ageAtDeath ageAtDeath
ethnicity ethnicity
@ -280,6 +281,7 @@ function initActorActions(store, router) {
name name
slug slug
age age
dateOfBirth
ageFromBirth ageFromBirth
ageAtDeath ageAtDeath
dateOfBirth dateOfBirth

View File

@ -107,7 +107,7 @@ function getMostFrequentDate(dates) {
} }
function getHighest(items) { 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) { function getLongest(items) {