Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Jan 20, 2025
1 parent 92c0bf6 commit f326bad
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions apps/chat/src/store/marketplace/marketplace.epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,6 @@ import {
import isNil from 'lodash/isNil';
import { ParsedUrlQueryInput } from 'querystring';

// const setDetailsModelEpic: AppEpic = (action$, _, { router }) =>
// action$.pipe(
// filter(MarketplaceActions.setDetailsModel.match),
// switchMap(({ payload }) => {
// const reference = payload?.reference;
// const query = router.query;
// if (reference) {
// router.push({
// query: {
// ...query,
// [MarketplaceQueryParams.model]: reference,
// },
// });
// } else {
// delete query[MarketplaceQueryParams.model];
// router.push({
// query,
// });
// }
// return EMPTY;
// }),
// );

const addToQuery = (
query: ParsedUrlQueryInput,
key: string,
Expand Down Expand Up @@ -186,6 +163,5 @@ const initQueryParamsEpic: AppEpic = (action$, state$, { router }) =>

export const MarketplaceEpics = combineEpics(
initQueryParamsEpic,
// setDetailsModelEpic,
setQueryParamsEpic,
);

0 comments on commit f326bad

Please sign in to comment.