mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 10:28:22 +00:00
fix(UI): Multiple data product delete modals (#12781)
This commit is contained in:
parent
e59f497ad5
commit
9a4b829853
@ -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};
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user