mirror of
https://github.com/outline/outline.git
synced 2026-12-04 02:20:17 +03:00
fix: Prefetch non-archived notificatios only (#9869)
This commit is contained in:
1 parent
f28f41eb76
commit
5b19f7c711
2 files changed
+2
-2
No files matched your search
@@ -20,7 +20,7 @@ const NotificationsPopover: React.FC = ({ children }: Props) => {
|
||||
const scrollableRef = React.useRef<HTMLDivElement>(null);
|
||||
|
||||
React.useEffect(() => {
|
||||
void notifications.fetchPage({});
|
||||
void notifications.fetchPage({ archived: false });
|
||||
}, [notifications]);
|
||||
|
||||
const handleRequestClose = React.useCallback(() => {
|
||||
|
||||
@@ -17,7 +17,7 @@ export default class NotificationsStore extends Store<Notification> {
|
||||
|
||||
@action
|
||||
fetchPage = async (
|
||||
options: PaginationParams | undefined
|
||||
options: ({ archived?: boolean } & PaginationParams) | undefined
|
||||
): Promise<Notification[]> => {
|
||||
this.isFetching = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user