Skip to content

Commit 1b55055

Browse files
committed
Simplify python generation
1 parent fa32b2d commit 1b55055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blocks/mrc_jump_to_step.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export const pythonFromBlock = function (
9797
block: JumpToStepBlock,
9898
_generator: ExtendedPythonGenerator,
9999
) {
100-
let code = 'self.current_step_index = self.mrc_step_name_to_index["' +
101-
block.getFieldValue(FIELD_STEP_NAME) + '"]\n';
100+
let code = 'self._current_step = "' +
101+
block.getFieldValue(FIELD_STEP_NAME) + '"\n';
102102
code += 'return\n';
103103

104104
return code;

0 commit comments

Comments
 (0)