Skip to content

Commit 9f316f2

Browse files
committed
Added comment specifying that it needs to call getAllComponentsFromMechanism so it can create the port parameters.
1 parent 8c1f26d commit 9f316f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/blocks/mrc_mechanism.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ const MECHANISM = {
205205
}
206206

207207
if (foundMechanism) {
208-
const components: storageModuleContent.Component[] = [];
209-
components.push(...editor.getAllComponentsFromMechanism(foundMechanism));
208+
// Here we need all the components (regular and private) from the mechanism because we need
209+
// to create port parameters for all the components.
210+
const components = editor.getAllComponentsFromMechanism(foundMechanism);
210211

211212
// If the mechanism class name has changed, update this blcok.
212213
if (this.getFieldValue(FIELD_TYPE) !== foundMechanism.className) {

0 commit comments

Comments
 (0)