Skip to content

Bug: "num components" not updated when a component in a collection is discarded #234

Closed
@pomegranited

Description

@pomegranited

Steps to reproduce:

  1. Create a library in the Authoring MFE
  2. Add a collection to the library.
  3. Add a component to the collection and do not publish.
  4. Note that the "number of components" shown in the collection is "1".
  5. View the library, and click "Discard changes" from the sidebar
  6. The draft component will disappear from the library's and collection's components lists.
  7. Note that the "number of components" for the collection card still says "1".

Expected behavior:

The only time we'd expect draft documents to be deleted is after calling "Discard changes" on a library with unpublished changes.

  1. Create a library in the Authoring MFE
  2. Add a collection to the library
  3. Add a component to the collection and do not publish.
  4. View the library, and click "Discard changes" from the sidebar
  5. The draft component will disappear from the library's and collection's components lists.
  6. The "number of components" for the collection card should be reduced from 1 to 0.

Metadata

Metadata

Assignees

Labels

bugReport of or fix for something that isn't working as intended

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions