frontend fully integreated with the backend
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export function getPaginatedItems<T>(value: T[] | { items?: T[] } | null | undefined): T[] {
|
||||
if (Array.isArray(value)) return value
|
||||
return Array.isArray(value?.items) ? value.items : []
|
||||
}
|
||||
Reference in New Issue
Block a user