From ec035647106d0dd1175bf621df1e3fff3a451998 Mon Sep 17 00:00:00 2001 From: adrien2p Date: Fri, 28 Oct 2022 11:58:25 +0200 Subject: [PATCH] fix: On query filter, the cursor should be rested --- .../src/hooks/use-sentry-transactions-filter.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/medusa-plugin-sentry-ui/src/hooks/use-sentry-transactions-filter.ts b/packages/medusa-plugin-sentry-ui/src/hooks/use-sentry-transactions-filter.ts index 6c1fe80..def4d2d 100644 --- a/packages/medusa-plugin-sentry-ui/src/hooks/use-sentry-transactions-filter.ts +++ b/packages/medusa-plugin-sentry-ui/src/hooks/use-sentry-transactions-filter.ts @@ -1,5 +1,6 @@ import { useEffect, useMemo, useReducer, useState } from 'react'; import { parseQueryString } from '../utils'; +import { defaultFilterValues } from "../types"; type SentryTransactionFilters = { statsPeriod: string; @@ -119,6 +120,7 @@ const reducer = ( return { ...state, query: action.payload, + cursor: defaultFilterValues.cursor, }; } case 'setCursor': {