Skip to content

Commit

Permalink
Multiple data product delete modals
Browse files Browse the repository at this point in the history
  • Loading branch information
sakethvarma397 committed Mar 4, 2025
1 parent be42e11 commit fbe1fee
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useEntityRegistryV2 } from '../../../useEntityRegistry';
import { PreviewType } from '../../Entity';
import EditDataProductModal from './EditDataProductModal';
import { REDESIGN_COLORS } from '../../shared/constants';
import useDeleteEntity from '../../shared/EntityDropdown/useDeleteEntity';

const TransparentButton = styled(Button)`
color: ${REDESIGN_COLORS.RED_ERROR};
Expand Down Expand Up @@ -62,10 +61,8 @@ export default function DataProductResult({ dataProduct, onUpdateDataProduct, se
setDeletedDataProductUrns((currentUrns) => [...currentUrns, dataProduct.urn]);
}

const { onDeleteEntity } = useDeleteEntity(dataProduct.urn, dataProduct.type, dataProduct, deleteDataProduct);

function onDeleteDataProduct() {
onDeleteEntity();
deleteDataProduct();
setTimeout(() => refetch(), 3000);
}

Expand Down

0 comments on commit fbe1fee

Please sign in to comment.