Skip to content

Commit

Permalink
Merge branch 'develop' into issues/9153/addclearimage
Browse files Browse the repository at this point in the history
  • Loading branch information
nithish1018 committed Dec 1, 2024
2 parents 37cfc0e + f76c625 commit 76ebf4f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Assets/AssetManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const AssetManage = (props: AssetManageProps) => {
>();
const [transactionFilter, setTransactionFilter] = useState<any>({});

const { data: asset, loading } = useQuery(routes.getAsset, {
const {
data: asset,
loading,
refetch,
} = useQuery(routes.getAsset, {
pathParams: {
external_id: assetId,
},
Expand Down Expand Up @@ -594,7 +598,10 @@ const AssetManage = (props: AssetManageProps) => {
handleClose={() =>
setServiceEditData({ ...serviceEditData, open: false })
}
handleUpdate={() => serviceRefetch()}
handleUpdate={() => {
serviceRefetch();
refetch();
}}
show={serviceEditData.open}
viewOnly={serviceEditData.viewOnly}
/>
Expand Down

0 comments on commit 76ebf4f

Please sign in to comment.