Skip to content

Publisher date persists when navigating between Single Types #215

@michaelany

Description

@michaelany

When navigating between different Single Types in Strapi admin, the Publisher component retains the Publish date and Unpublish date from the previously viewed entity, even when the current entity has no scheduled publication dates set.

The Publisher date fields (both Publish and Unpublish) should be empty (or show the correct dates) immediately when navigating between Single Types, without requiring a page refresh.

To Reproduce

  1. Navigate to Single Type A and let the page fully load
  2. Navigate to Single Type B
  3. In Single Type B, set or modify a Publish date and/or Unpublish date
  4. Navigate back to Single Type A (which was already loaded in step 1)
  5. Observe that Single Type A now shows the dates from Single Type B
  6. Refresh the page - the date fields correctly show the actual values for Single Type A

Additional context

  • Issue only affects Single Types
  • Collection Types work correctly (full plugin component remounts)
  • The problem appears when Publish date and/or Unpublish date is selected or being edited

System

  • Node.js version: 22.x
  • Strapi version: 5.33.2
  • Plugin version: 2.0.5
  • Database: MySQL
  • Operating system: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions