File tree Expand file tree Collapse file tree
apps/app/src/actions/policies Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export const createPolicyAction = authActionClient
7171 frequency : Frequency . monthly ,
7272 status : PolicyStatus . draft ,
7373 content : initialContent ,
74+ draftContent : initialContent , // Sync with content to prevent false "unpublished changes" indicator
7475 ...( controlIds &&
7576 controlIds . length > 0 && {
7677 controls : {
Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ export const updateDraftAction = authActionClient
111111 where : { id : policyId } ,
112112 data : {
113113 draftContent : draftContentToSave ,
114- // Clear signedBy when draft is updated
115- signedBy : [ ] ,
114+ // Note: Do NOT clear signedBy here - signatures are for published content,
115+ // not drafts. Signatures are only cleared when content is actually published.
116116 } ,
117117 } ) ;
118118
You can’t perform that action at this time.
0 commit comments