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 where background would show when deleting last sprite in spritelab #46100

Merged
merged 4 commits into from
May 6, 2022

Conversation

tim-dot-org
Copy link
Contributor

When initially loading the list of animations, we skip over any background animations when deciding which one to select first, so do the same when deleting.

Links

Testing story

added a unit test, and manually tested.
not sure how to test the error boundary dialog effectively, but the changes there are minimal

@tim-dot-org tim-dot-org requested a review from a team April 28, 2022 22:23
@@ -38,7 +38,7 @@ class AnimationListItem extends React.Component {
children: PropTypes.node,
style: PropTypes.object,
allAnimationsSingleFrame: PropTypes.bool.isRequired,
spriteLab: PropTypes.bool.isRequired,
isSpriteLab: PropTypes.bool.isRequired,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Copy link

@epeach epeach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seal

@tim-dot-org tim-dot-org merged commit 8e52375 into staging May 6, 2022
@tim-dot-org tim-dot-org deleted the tim/fnf/spritelab-delete branch May 6, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants