Skip to content

Commit

Permalink
remove unnecessary object destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Aug 29, 2024
1 parent 1e0e74a commit 1acde79
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Components/Patient/DailyRoundListDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ export const DailyRoundListDetails = (props: any) => {

const { loading: isLoading } = useQuery(routes.getDailyReport, {
pathParams: { consultationId, id },
onResponse: ({ res, data }) => {
if (res && data) {
const tdata: DailyRoundsModel = {
...data,
};
setDailyRoundListDetails(tdata);
onResponse: ({ data }) => {
if (data) {
setDailyRoundListDetails(data);
}
},
});
Expand Down

0 comments on commit 1acde79

Please sign in to comment.