Skip to content

Commit 2c4a33b

Browse files
authored
Fix issue with rendering container groups (#716)
1 parent 0feb9e3 commit 2c4a33b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

cmd/mdl/webapp/dist/main.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/mdl/webapp/dist/main.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/mdl/webapp/src/parseModel.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,9 @@ export const parseView = (model: Model, layouts: Layouts, viewKey: string) => {
178178
const groupingIDs: { [key: string]: boolean } = {}
179179
if (section == 'deploymentViews' || section == 'containerViews') {
180180
view.elements.forEach(ref => {
181-
const el = elements.get(ref.id);
181+
const el = elements.get(ref.id)
182182
if (el?.parent) {
183-
const id = section === 'containerViews' ? el.id : el.parent.id;
184-
groupingIDs[id] = true;
183+
groupingIDs[el.parent.id] = true
185184
}
186185
})
187186
} else if (view.softwareSystemId) {

0 commit comments

Comments
 (0)