Skip to content

Undo only undos added gradients #24

@vicmeow

Description

@vicmeow

Describe the bug
The undo button undos only the addition of a gradient. A user should also be able to undo the deletion of a gradient.

To Reproduce
Steps to reproduce the behavior:

  1. Add a gradient by clicking “add”
  2. Delete the added gradient by clicking “delete”
  3. Click “undo” to undo the deletion
  4. See error, only undos the adding of a gradient

Expected behavior
Should undo the latest action, not just the add action

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions