Skip to content

Commit

Permalink
feat: Removed extra default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur committed Dec 24, 2024
1 parent 428c19c commit 51cc020
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/widget/src/hooks/Phase3/usePhase3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ export function usePhase3({ onNext }: IUsePhase3Props) {
const [showAllDataValidModal, setShowAllDataValidModal] = useState<boolean | undefined>(undefined);
const [showDeleteConfirmModal, setShowDeleteConfirmModal] = useState<boolean | undefined>(undefined);

const defaultValues = { disableFindAndReplace: false, disableCheckBox: false, disableSrNo: false };

const {
disableFindAndReplace = false,
disableCheckBox = false,
disableSrNo = false,
} = extra ? { ...defaultValues, ...JSON.parse(extra as string) } : defaultValues;
} = extra ? JSON.parse(extra as string) : {};

useQuery<unknown, IErrorObject, ISchemaColumn[], [string, string]>(
[`columns:${uploadInfo._id}`, uploadInfo._id],
Expand Down

0 comments on commit 51cc020

Please sign in to comment.