kaori 4 лет назад
Родитель
Сommit
9e54fcd485

+ 2 - 2
packages/app/src/components/InAppNotification/InAppNotificationPage.tsx

@@ -19,8 +19,8 @@ const InAppNotificationPageBody: FC<Props> = (props) => {
   const { appContainer } = props;
   const limit = appContainer.config.pageLimitationXL;
   const [activePageOfAllNotificationCat, setActivePage] = useState(1);
-  const offset = (activePageOfAllNotificationCat - 1) * limit;
-  const { data: allNotificationData } = useSWRxInAppNotifications(limit, offset);
+  const offsetOfAllNotificationCat = (activePageOfAllNotificationCat - 1) * limit;
+  const { data: allNotificationData } = useSWRxInAppNotifications(limit, offsetOfAllNotificationCat);
 
   const [activePageOfUnopenedNotificationCat, setActiveUnopenedNotificationPage] = useState(1);
   const offsetOfUnopenedNotificationCat = (activePageOfUnopenedNotificationCat - 1) * limit;