Skip to content

Commit 392b556

Browse files
committed
Add navigation handling for agent deletion confirmation modal
This update modifies the agent deletion confirmation modal to prevent navigation back when the modal is displayed, ensuring a smoother user experience during the deletion process.
1 parent 56bc923 commit 392b556

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/pages/settings/Agents/EditAgentPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function EditAgentPage({route}: EditAgentPageProps) {
4747
confirmText: translate('common.delete'),
4848
cancelText: translate('common.cancel'),
4949
danger: true,
50+
shouldHandleNavigationBack: false,
5051
});
5152
if (result.action !== ModalActions.CONFIRM) {
5253
return;

0 commit comments

Comments
 (0)