Skip to content

Commit e8c3354

Browse files
committed
concept id too
1 parent 57c5135 commit e8c3354

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/components/lex/index.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ export function ColumnsTable({ resData, colData, fossilsData }) {
104104
if (!colData || !colData.features || colData.features.length === 0) return;
105105
const summary = summarize(colData.features || []);
106106

107-
console.log("resData:", resData);
108-
109107
let filters = []
110108

111109
if (resData?.lith_id) {
@@ -122,6 +120,20 @@ export function ColumnsTable({ resData, colData, fossilsData }) {
122120
}
123121
}
124122

123+
if (resData?.concept_id) {
124+
const legend_ids = useAPIResult(apiV2Prefix + "/mobile/map_filter?concept_id=" + resData.concept_id)
125+
126+
if (legend_ids) {
127+
filters.push({
128+
category: "strat_name",
129+
type: "strat_name_concepts",
130+
id: resData.concept_id,
131+
name: resData.name,
132+
legend_ids
133+
})
134+
}
135+
}
136+
125137
if (resData?.int_id) {
126138
filters.push(
127139
{
@@ -134,6 +146,8 @@ export function ColumnsTable({ resData, colData, fossilsData }) {
134146
)
135147
}
136148

149+
console.log("Filters in ColumnsTable:", filters)
150+
137151
const { b_age, t_age } = resData;
138152

139153
const {

0 commit comments

Comments
 (0)