Skip to content

Commit 597ca03

Browse files
committed
adding missing edge component_type
1 parent 0802579 commit 597ca03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal_stores/model/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export default function useModelStyle() {
7575
return modelSurfacesStyleStore.modelSurfaceVisibility(id, component_id)
7676
} else if (component_type === "Block") {
7777
return modelBlocksStyleStore.modelBlockVisibility(id, component_id)
78+
} else if (component_type === "Edge") {
79+
return modelEdgesStyleStore.modelEdgesVisibility(id)
7880
}
7981
throw new Error("Unknown model component_type: " + component_type)
8082
}
@@ -127,6 +129,8 @@ export default function useModelStyle() {
127129
[component_id],
128130
visibility,
129131
)
132+
} else if (component_type === "Edge") {
133+
return modelEdgesStyleStore.setModelEdgesVisibility(id, visibility)
130134
} else {
131135
throw new Error("Unknown model component_type: " + component_type)
132136
}

0 commit comments

Comments
 (0)