Skip to content

Commit edadfb6

Browse files
committed
fix[frontend](integrations): only clear saved tenant changes instead of all pending changes
1 parent 84f038f commit edadfb6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

frontend/src/app/app-module/conf/int-generic-group-config/int-generic-group-config.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ export class IntGenericGroupConfigComponent implements OnInit, OnChanges, OnDest
198198
})
199199
).subscribe({
200200
next: () => {
201-
this.pendingChanges = false;
202-
this.changes = { keys: [], moduleId: this.moduleId };
201+
// Remove only the saved group's changes, keep other groups' changes
202+
this.changes.keys = this.changes.keys.filter(k => k.groupId !== group.id);
203+
this.pendingChanges = this.changes.keys.length > 0;
203204
this.configValidChange.emit(this.tenantGroupConfigValid());
204205
this.toast.showSuccessBottom('Configuration saved successfully');
205206
},

0 commit comments

Comments
 (0)