Skip to content

Commit

Permalink
revert: unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Dec 19, 2024
1 parent cb0abb1 commit 76a7dbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apis/shared-dimensions/lib/handlers/hierarchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dcterms, schema, sd } from '@tpluscode/rdf-ns-builders'
import { asyncMiddleware } from 'middleware-async'
import $rdf from 'rdf-ext'
import env from '@cube-creator/core/env'
import { meta } from '@cube-creator/core/namespace'
import { md, meta } from '@cube-creator/core/namespace'
import onetime from 'onetime'
import { sh } from '@tpluscode/rdf-ns-builders/strict'
import { isGraphPointer, isNamedNode } from 'is-graph-pointer'
Expand Down Expand Up @@ -37,7 +37,7 @@ export const get = asyncMiddleware(async (req, res) => {
const loadShapesOnce = onetime(loadShapes)

export const getExternal = asyncMiddleware(async (req, res) => {
const shape: AnyPointer = (await loadShapesOnce()).has(sh.targetClass, meta.Hierarchy)
const shape: AnyPointer = (await loadShapesOnce()).has(sh.targetClass, md.Hierarchy)

if (!isGraphPointer(shape)) {
throw new Error('Shape not found')
Expand Down
2 changes: 1 addition & 1 deletion apis/shared-dimensions/lib/store/shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ PREFIX sh: <http://www.w3.org/ns/shacl#>
] .

[
sh:targetClass meta:Hierarchy ;
sh:targetClass md:Hierarchy ;
sh:property
[
sh:path rdf:type ;
Expand Down
5 changes: 0 additions & 5 deletions ui/src/store/modules/hierarchy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ const getters: GetterTree<HierarchyState, RootState> = {}

const actions: ActionTree<HierarchyState, RootState> = {
async fetchHierarchy (context, id) {
if (!context.rootState.hierarchies.collection) {
await context.dispatch('sharedDimensions/fetchEntrypoint', {}, { root: true })
await context.dispatch('hierarchies/fetchCollection', {}, { root: true })
}

context.commit('storeHierarchy', await api.fetchResource(id.replaceAll('!!', '/')))
},

Expand Down

0 comments on commit 76a7dbe

Please sign in to comment.