From 2e8a2f6a80fbd974ad877aeee4ef76b740831311 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 28 Jun 2024 18:58:50 +0200 Subject: refactor: show semantics even if propagation fails --- subprojects/frontend/src/graph/GraphStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subprojects/frontend/src/graph') diff --git a/subprojects/frontend/src/graph/GraphStore.ts b/subprojects/frontend/src/graph/GraphStore.ts index 301b4d86..86ffd802 100644 --- a/subprojects/frontend/src/graph/GraphStore.ts +++ b/subprojects/frontend/src/graph/GraphStore.ts @@ -9,7 +9,7 @@ import { makeAutoObservable, observable } from 'mobx'; import type EditorStore from '../editor/EditorStore'; import type { RelationMetadata, - SemanticsSuccessResult, + SemanticsModelResult, } from '../xtext/xtextServiceResults'; export type Visibility = 'all' | 'must' | 'none'; @@ -52,7 +52,7 @@ export function isVisibilityAllowed( const TYPE_HASH_HEX_PREFFIX = '_'; export default class GraphStore { - semantics: SemanticsSuccessResult = { + semantics: SemanticsModelResult = { nodes: [], relations: [], partialInterpretation: {}, @@ -175,7 +175,7 @@ export default class GraphStore { } } - setSemantics(semantics: SemanticsSuccessResult) { + setSemantics(semantics: SemanticsModelResult) { this.semantics = semantics; this.relationMetadata.clear(); this.semantics.relations.forEach((metadata) => { -- cgit v1.2.3-70-g09d2