Fixes channel table not pulling from local storage for page size.

This commit is contained in:
SergeantPanda 2025-07-18 21:32:41 -05:00
parent fc9b179e9a
commit 2df377b7f5
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ class OrInFilter(django_filters.Filter):
class StreamPagination(PageNumberPagination):
page_size = 25 # Default page size
page_size = 50 # Default page size to match frontend default
page_size_query_param = "page_size" # Allow clients to specify page size
max_page_size = 10000 # Prevent excessive page sizes
@ -279,7 +279,7 @@ class ChannelGroupViewSet(viewsets.ModelViewSet):
# 3) Channel Management (CRUD)
# ─────────────────────────────────────────────────────────
class ChannelPagination(PageNumberPagination):
page_size = 25 # Default page size
page_size = 50 # Default page size to match frontend default
page_size_query_param = "page_size" # Allow clients to specify page size
max_page_size = 10000 # Prevent excessive page sizes

View file

@ -10,7 +10,7 @@ const useChannelsTableStore = create((set, get) => ({
sorting: [{ id: 'channel_number', desc: false }],
pagination: {
pageIndex: 0,
pageSize: 50,
pageSize: JSON.parse(localStorage.getItem('channel-table-prefs'))?.pageSize || 50,
},
selectedChannelIds: [],
allQueryIds: [],