Skip to content

Create Template showing "Discard changes" even when no changes are made#2887

Open
Sandy10247 wants to merge 2 commits intoknadh:masterfrom
Sandy10247:bug/create-template-comp-fix
Open

Create Template showing "Discard changes" even when no changes are made#2887
Sandy10247 wants to merge 2 commits intoknadh:masterfrom
Sandy10247:bug/create-template-comp-fix

Conversation

@Sandy10247
Copy link

@Sandy10247 Sandy10247 commented Jan 25, 2026

Issue

  • When user is exiting Create Template page, we are seeing Discard changes even with no new changes are made by the user.

Before

Screenshot 2026-01-25 at 6 47 59 PM

Fix

  • Added default value "" for comparision when no value existed
  • Introduced isEqual utils fn to comapre values.
  • Moved read only values to computed.

After

Screenshot 2026-01-25 at 7 24 08 PM

Aanamoly ⚠

  • Why only compare body and contentType changes, when there are lot of moving parts in the page ⁇.

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.

1 participant