From: pujashahu Date: Thu, 11 Sep 2025 13:40:27 +0000 (+0530) Subject: mgr/dashboard: Form retains old data when switching from edit to create mode X-Git-Tag: testing/wip-vshankar-testing-20250924.134331-debug~6^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=918dff407d912b3a5ac068e0050467396668163c;p=ceph-ci.git mgr/dashboard: Form retains old data when switching from edit to create mode Fixes: https://tracker.ceph.com/issues/72989 Signed-off-by: pujashahu --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-notification-form/rgw-notification-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-notification-form/rgw-notification-form.component.ts index c800a948ad1..f1bbfb56cad 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-notification-form/rgw-notification-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-notification-form/rgw-notification-form.component.ts @@ -109,7 +109,6 @@ export class RgwNotificationFormComponent extends CdForm implements OnInit { } ngOnInit() { - this.editing = !!this.selectedNotification; this.s3KeyFilterValue = Object.values(s3KeyFilter); this.filterSettings.s3Key.options = this.s3KeyFilterValue; this.createNotificationForm();