Skip to content

Commit

Permalink
Import cloneDeep directly from lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Jul 1, 2024
1 parent 8ce8886 commit 44da559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/NavigationUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _ from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import SCREENS from '@src/SCREENS';
import getTopmostBottomTabRoute from './Navigation/getTopmostBottomTabRoute';
import type {CentralPaneName, RootStackParamList, State} from './Navigation/types';
Expand Down Expand Up @@ -26,7 +26,7 @@ function isCentralPaneName(screen: string | undefined): screen is CentralPaneNam
}

const removePolicyIDParamFromState = (state: State<RootStackParamList>) => {
const stateCopy = _.cloneDeep(state);
const stateCopy = cloneDeep(state);
const bottomTabRoute = getTopmostBottomTabRoute(stateCopy);
if (bottomTabRoute?.params && 'policyID' in bottomTabRoute.params) {
delete bottomTabRoute.params.policyID;
Expand Down

0 comments on commit 44da559

Please sign in to comment.