Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix types

Manav Rathib23f9a1a88db
diff --git a/web/packages/new/photos/components/Notification.tsx b/web/packages/new/photos/components/Notification.tsx
index 79625bd8ca..216289ef33 100644
--- a/web/packages/new/photos/components/Notification.tsx
+++ b/web/packages/new/photos/components/Notification.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import { EllipsizedTypography } from "@/base/components/Typography";
import { RippleDisabledButton } from "@/base/components/mui/FocusVisibleButton";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
@@ -73,7 +72,7 @@ type NotificationProps = ModalVisibilityProps & {
* Attributes that customize the contents of the notification, and the
* actions that happen on clicking it.
*/
- attributes: NotificationAttributes;
+ attributes: NotificationAttributes | undefined;
/**
* If `true`, then the notification is not closed when it is clicked, and
* should be closed by pressing the close icon button it contains.