Fixed bug where locality details query breaks on species with ref_ref.exact_date NULL

This commit is contained in:
Tatu Laras
2025-06-24 10:53:22 +03:00
parent 9fefd47bb2
commit 489af2bb36
+2 -2
View File
@@ -80,9 +80,9 @@ export const getSpeciesDetails = async (id: number) => {
now_sau: {
include: {
now_sr: {
include: {
select: {
ref_ref: {
include: {
select: {
ref_authors: true,
ref_journal: true,
},