Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion web/components/templates/requests/RequestsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ export default function RequestsPage(props: RequestsPageV2Props) {
),
);
drawerRef.current?.expand(); // Expand the drawer
drawerRef.current?.resize(drawerSize);
// Use a minimum size of 33 when opening from URL to ensure visibility
const sizeToUse = drawerSize > 0 ? drawerSize : 33;
drawerRef.current?.resize(sizeToUse);
}
}, [initialRequest, selectedData, drawerSize]);

Expand Down
7 changes: 7 additions & 0 deletions web/components/templates/requests/tableFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ export default function TableFooter(props: TableFooterProps) {
const totalPages = Math.ceil(count / pageSize);
const [page, setPage] = useState<number>(currentPage);

// Sync local page state with prop when it changes externally (e.g., from URL)
useEffect(() => {
if (currentPage !== page) {
setPage(currentPage);
}
}, [currentPage]);

const debouncedPage = useDebounce(page, 1200);

useEffect(() => {
Expand Down
Loading