File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ function EnvironmentSelectorComponent({
132
132
showNonCascadeDeleteDialog ( false )
133
133
showForceDeleteDialog ( false )
134
134
toast . success ( 'Deletion initiated successfully.' )
135
- _init ( )
135
+ if ( typeof _init === 'function' ) {
136
+ _init ( )
137
+ }
136
138
} else if (
137
139
deleteAction !== DELETE_ACTION . NONCASCADE_DELETE &&
138
140
! response . result . deleteResponse ?. clusterReachable
Original file line number Diff line number Diff line change @@ -594,7 +594,9 @@ function ChartValuesView({
594
594
//preset value deleted successfully
595
595
if ( isCreateValueView ) {
596
596
toast . success ( TOAST_INFO . DELETION_INITIATED )
597
- init && init ( )
597
+ if ( typeof init === 'function' ) {
598
+ init ( )
599
+ }
598
600
history . push (
599
601
getSavedValuesListURL ( installedConfigFromParent . appStoreId )
600
602
)
You can’t perform that action at this time.
0 commit comments