Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Bug on withSafeTimeouts. #46595

Merged
merged 1 commit into from
Dec 16, 2022
Merged

Conversation

jorgefilipecosta
Copy link
Member

This call this.timeouts.filter( ( timeoutId ) => timeoutId !== id ); did nothing it just returned the filtered array but we need to assign it to this.timeouts otherwise the timeoutId is not removed from the array.

@jorgefilipecosta jorgefilipecosta added the [Type] Bug An existing feature does not function as intended label Dec 15, 2022
@jorgefilipecosta jorgefilipecosta merged commit 010361f into trunk Dec 16, 2022
@jorgefilipecosta jorgefilipecosta deleted the fix/bug-on-with-safe-timeouts branch December 16, 2022 00:01
@github-actions github-actions bot added this to the Gutenberg 14.9 milestone Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant