From 14c7d2bf538ac601612b3c8baa9d4c014db4b93b Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 30 Oct 2022 11:00:40 +0100 Subject: [PATCH] client: fix ternary statement fixup for 4bfbe0dd96ee8fe2cb41f4a07d5d5e8ce42d2ff5 --- packages/client/src/components/ui/pagination.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/ui/pagination.vue b/packages/client/src/components/ui/pagination.vue index 552c8aece..071525156 100644 --- a/packages/client/src/components/ui/pagination.vue +++ b/packages/client/src/components/ui/pagination.vue @@ -129,7 +129,11 @@ const fetchMore = async (ahead?: boolean): Promise => { if (!ahead) { backed = true; } - const params = props.pagination.params ? isRef(props.pagination.params) ? props.pagination.params : props.pagination.params : {}; + const params = props.pagination.params + ? isRef(props.pagination.params) + ? props.pagination.params.value as Record + : props.pagination.params + : {}; await os.api(props.pagination.endpoint, { ...params, limit: SECOND_FETCH_LIMIT + 1,