Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix npe

Manav Rathi1108fa9f7903
diff --git a/web/packages/shared/components/DialogBox/index.tsx b/web/packages/shared/components/DialogBox/index.tsx
index e02db2fda8..9ac8c48217 100644
--- a/web/packages/shared/components/DialogBox/index.tsx
+++ b/web/packages/shared/components/DialogBox/index.tsx
@@ -60,7 +60,7 @@ export default function DialogBox({
});
const handleDialogEnter = () => {
- if (attributes.proceed.autoFocus)
+ if (attributes.proceed?.autoFocus)
proceedButtonRef?.current.focusVisible();
};