Skip to content

Commit 821a9b5

Browse files
committed
Fix delete button callback not working in DeleteBottomSheetDialog
1 parent 393652e commit 821a9b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui-components/src/main/java/org/dhis2/ui/dialogs/bottomsheet/DeleteBottomSheetDialog.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ DeleteBottomSheetDialog(
8181
},
8282
text = mainButtonText,
8383
colorStyle = ColorStyle.ERROR,
84-
onClick = {
85-
onMainButtonClick
86-
},
84+
onClick = onMainButtonClick,
8785
modifier = Modifier
8886
.fillMaxWidth(),
8987
)

0 commit comments

Comments
 (0)