[PR #30296] fix: restore draft version correctly in version history panel #32765

Closed
opened 2026-02-21 20:52:02 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30296

State: closed
Merged: Yes


Summary

  • Fixes the issue where selecting the draft version in the version history panel shows the published DSL instead of the current draft DSL
  • When clicking on a draft version, now calls handleLoadBackupDraft() to restore the in-memory backup instead of handleRestoreFromPublishedWorkflow()
  • Added tests for the version click behavior

Fixes #26107

Test plan

  • Added unit tests for VersionHistoryPanel component
  • All existing tests pass (5551 tests)
  • Verified that draft version selection now correctly restores the backup draft
**Original Pull Request:** https://github.com/langgenius/dify/pull/30296 **State:** closed **Merged:** Yes --- ## Summary - Fixes the issue where selecting the draft version in the version history panel shows the published DSL instead of the current draft DSL - When clicking on a draft version, now calls `handleLoadBackupDraft()` to restore the in-memory backup instead of `handleRestoreFromPublishedWorkflow()` - Added tests for the version click behavior Fixes #26107 ## Test plan - [x] Added unit tests for VersionHistoryPanel component - [x] All existing tests pass (5551 tests) - [x] Verified that draft version selection now correctly restores the backup draft
yindo added the pull-request label 2026-02-21 20:52:02 -05:00
yindo closed this issue 2026-02-21 20:52:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32765