You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/proposal_builder/proposal_builder_bloc.dart
+46-16Lines changed: 46 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -557,15 +557,28 @@ final class ProposalBuilderBloc
557
557
Future<void> _publishAndSubmitProposalForReview(
558
558
Emitter<ProposalBuilderState> emit,
559
559
) async {
560
+
final currentRef = state.metadata.documentRef!;
560
561
final updatedRef =await _proposalService.publishProposal(
561
562
document:_buildDocumentData(),
562
563
);
563
564
565
+
List<DocumentVersion>? updatedVersions;
566
+
if (updatedRef != currentRef) {
567
+
// if a new ref has been created we need to recreate
568
+
// the version history to reflect it, drop the old one
0 commit comments