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) {
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, {
...params,
limit: SECOND_FETCH_LIMIT + 1,