Skip to content

Commit

Permalink
chore: fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 24, 2022
1 parent 21e57a1 commit 80c62c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/roadshow/lib/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { sh } from '@tpluscode/rdf-ns-builders/loose'
import { dataset } from '@rdf-esm/dataset'
import { NodeShape } from '@rdfine/shacl'
import { ResourceIdentifier } from '@tpluscode/rdfine'
import graphPointer, { isLiteral } from 'is-graph-pointer'
import graphPointer from 'is-graph-pointer'
import { create, createPropertyState, FocusNodeState, ObjectState, PropertyState, RendererState } from './state'
import {
FocusNodeViewContext,
Expand Down Expand Up @@ -267,7 +267,7 @@ function showProperty(this: FocusNodeViewContext, show: Show) {
return !!obj.has(rdf.type, clas.id).term
}
if (datatype) {
return isLiteral(obj) && obj.term.datatype.equals(datatype.id)
return graphPointer.isLiteral(obj) && obj.term.datatype.equals(datatype.id)
}
return true
Expand Down

0 comments on commit 80c62c6

Please sign in to comment.