Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cc7bb88

Browse files
author
Francesco Furlan
committed
fix: clear state on remove
1 parent f29faad commit cc7bb88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/serverless.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,14 @@ class AwsLambda extends Component {
142142
`Removing role that was automatically created for this function with ARN: ${this.state.autoRoleArn}.`
143143
)
144144
await removeRole(iam, this.state.autoRoleArn)
145+
this.state.autoRoleArn = undefined
145146
}
146147

147148
console.log(`Removing lambda ${name} from the ${region} region.`)
148149
await deleteLambdaFunction(lambda, name)
149150
console.log(`Successfully removed lambda ${name} from the ${region} region.`)
151+
this.state = {}
152+
return {}
150153
}
151154
}
152155

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /