Skip to content

Commit

Permalink
Merge pull request #8069 from amplication/fix/btm-confirmation
Browse files Browse the repository at this point in the history
feat(client):btm confirmation on changes only
  • Loading branch information
mulygottlieb committed Feb 21, 2024
2 parents e14f7c4 + 1ad7cb1 commit d152fa9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ export const BtmButton: React.FC<Props> = ({
if (!overrideChangesConfirmed) {
const savedData = loadPersistentData();

if (savedData && savedData.redesignMode) {
if (
savedData &&
(savedData.changes?.movedEntities?.length > 0 ||
savedData.changes?.newServices?.length > 0)
) {
setShowConfirmation(true);
return;
}
Expand Down

0 comments on commit d152fa9

Please sign in to comment.