Skip to content

Commit

Permalink
Update title view
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Sep 26, 2024
1 parent 3a07f0d commit d47ff16
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pages/integrations/xdd/extractions/@paperId/+Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,22 @@ function ExtractionIndex() {
const models = useModelIndex();
const entityTypes = useEntityTypeIndex();

const paper = usePostgresQuery("kg_publication_entities", {
subject: "paper_id",
predicate: paperId,
})?.[0];

const data = usePostgresQuery("kg_context_entities", {
subject: "paper_id",
predicate: paperId,
});

if (data == null || models == null) {
if (data == null || models == null || paper == null || entityTypes == null) {
return h("div", "Loading...");
}

return h([
h("h1", data.citation?.title ?? "Model extractions"),
h("h1", paper.citation?.title ?? "Model extractions"),
data.map((d) => {
return h(ExtractionContext, {
data: enhanceData(d, models, entityTypes),
Expand Down

0 comments on commit d47ff16

Please sign in to comment.