Skip to content

Commit e18c259

Browse files
committed
remove warnings
1 parent e54d696 commit e18c259

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/blocks/mrc_steps.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ const STEPS = {
7777
const stepContainerBlock = containerBlock as stepContainer.StepContainerBlock;
7878
const stepItemBlocks: stepContainer.StepItemBlock[] = stepContainerBlock.getStepItemBlocks();
7979

80-
const oldStepNames = [...this.mrcStepNames];
8180
this.mrcStepNames = [];
8281
stepItemBlocks.forEach((stepItemBlock) => {
8382
this.mrcStepNames.push(stepItemBlock.getName());
@@ -86,7 +85,7 @@ const STEPS = {
8685
// Update jump blocks for any renamed steps
8786
const workspace = this.workspace;
8887
const jumpBlocks = workspace.getBlocksByType(MRC_JUMP_TO_STEP, false);
89-
stepItemBlocks.forEach((stepItemBlock, index) => {
88+
stepItemBlocks.forEach((stepItemBlock) => {
9089
const oldName = stepItemBlock.getOriginalName();
9190
const newName = stepItemBlock.getName();
9291
if (oldName && oldName !== newName) {

0 commit comments

Comments
 (0)