diff --git a/packages/marketplace/src/sagas/__tests__/web-component.ts b/packages/marketplace/src/sagas/__tests__/web-component.ts index af8cfd6316..afa229b87f 100644 --- a/packages/marketplace/src/sagas/__tests__/web-component.ts +++ b/packages/marketplace/src/sagas/__tests__/web-component.ts @@ -24,7 +24,6 @@ import { import { errorThrownServer } from '@/actions/error' import errorMessages from '../../../../elements/src/utils/validators/error-messages' import { fetchNegotiators, NegotiatorsResult } from '@/services/negotiators' -import { GET_ALL_PAGE_SIZE } from '@/constants/paginator' describe('webComponentSagas', () => { it('should listen request data', () => { @@ -133,9 +132,7 @@ describe('fetchWebComponentConfigSaga', () => { } as NegotiatorsResult const gen = cloneableGenerator(fetchWebComponentConfigSaga as any)({ data: params }) - expect(gen.next().value).toEqual( - all([call(fetchWebComponentConfig, params), call(fetchNegotiators, { pageSize: GET_ALL_PAGE_SIZE })]), - ) + expect(gen.next().value).toEqual(all([call(fetchWebComponentConfig, params), call(fetchNegotiators, {})])) it('api call success', () => { const clone = gen.clone() diff --git a/packages/marketplace/src/sagas/web-component.ts b/packages/marketplace/src/sagas/web-component.ts index cae0c8d049..eb4f1eed05 100644 --- a/packages/marketplace/src/sagas/web-component.ts +++ b/packages/marketplace/src/sagas/web-component.ts @@ -16,13 +16,12 @@ import { clientUpdateWebComponentConfigFailed, } from '@/actions/client' import { fetchNegotiators } from '@/services/negotiators' -import { GET_ALL_PAGE_SIZE } from '@/constants/paginator' export const fetchWebComponentConfigSaga = function*({ data }: Action) { try { const [webComponentConfig, negotiators] = yield all([ call(fetchWebComponentConfig, data), - call(fetchNegotiators, { pageSize: GET_ALL_PAGE_SIZE }), + call(fetchNegotiators, {}), ]) if (webComponentConfig.message) throw Error(webComponentConfig.message) yield put(clientFetchWebComponentConfigSuccess(webComponentConfig))