|
|
@@ -2,7 +2,8 @@ import React, { FC } from 'react';
|
|
|
|
|
|
import { HasObjectId } from '@growi/core';
|
|
|
|
|
|
-import { IInAppNotification, PaginateResult } from '~/interfaces/in-app-notification';
|
|
|
+import type { IInAppNotification, PaginateResult } from '~/interfaces/in-app-notification';
|
|
|
+import { isIPageSnapshot } from '~/models/serializers/in-app-notification-snapshot/page';
|
|
|
|
|
|
import InAppNotificationElm from './InAppNotificationElm';
|
|
|
|
|
|
@@ -26,7 +27,7 @@ const InAppNotificationList: FC<Props> = (props: Props) => {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- const notifications = inAppNotificationData.docs;
|
|
|
+ const notifications = inAppNotificationData.docs.filter((notification) => { return isIPageSnapshot(notification.snapshot) });
|
|
|
|
|
|
return (
|
|
|
<>
|