client: fix ternary statement

fixup for 4bfbe0dd96
This commit is contained in:
Johann150 2022-10-30 11:00:40 +01:00
parent 4bfbe0dd96
commit 14c7d2bf53
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -129,7 +129,11 @@ const fetchMore = async (ahead?: boolean): Promise<void> => {
if (!ahead) { if (!ahead) {
backed = true; 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<string, any>
: props.pagination.params
: {};
await os.api(props.pagination.endpoint, { await os.api(props.pagination.endpoint, {
...params, ...params,
limit: SECOND_FETCH_LIMIT + 1, limit: SECOND_FETCH_LIMIT + 1,