forked from DebaucheryLibrarian/traxxx
Fixed birthdate interpolation and query.
This commit is contained in:
parent
a3306ad4e7
commit
d67dca60fc
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue