Skip to content

Commit d930240

Browse files
fixed type error
1 parent c3fdc73 commit d930240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cpt-ui/src/context/NavigationProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface NavigationContextType {
2626
searchType: "prescriptionId" | "nhsNumber" | "basicDetails",
2727
searchParams: Record<string, string | undefined>,
2828
) => void;
29-
getOriginalSearchParameters: () => Record<string, string> | null;
29+
getOriginalSearchParameters: () => Record<string, string | undefined> | null;
3030
getRelevantSearchParameters: (
3131
searchType: "prescriptionId" | "nhsNumber" | "basicDetails",
3232
) => Record<string, string>;
@@ -178,7 +178,7 @@ export const NavigationProvider: React.FC<NavigationProviderProps> = ({
178178
}
179179

180180
const keys = relevantKeys[searchType] || []
181-
const relevantParams: Record<string, string> = {}
181+
const relevantParams: Record<string, string | undefined> = {}
182182

183183
keys.forEach((key) => {
184184
if (originalSearchParameters.params[key] !== undefined) {

0 commit comments

Comments
 (0)