mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 17:37:33 +00:00
Glossary: Worked on the refetching data issue (#5638)
This commit is contained in:
parent
9143663f1f
commit
d04138aec3
@ -46,12 +46,15 @@ function EntityActions(props: Props) {
|
||||
})
|
||||
.then(({ errors }) => {
|
||||
if (!errors) {
|
||||
refetchForEntity?.();
|
||||
setIsBatchAddGlossaryTermModalVisible(false);
|
||||
message.success({
|
||||
content: `Added Glossary Term to entities!`,
|
||||
duration: 2,
|
||||
});
|
||||
message.loading({ content: 'Updating...', duration: 3 });
|
||||
setTimeout(() => {
|
||||
message.success({
|
||||
content: `Added Glossary Term to entities!`,
|
||||
duration: 2,
|
||||
});
|
||||
refetchForEntity?.();
|
||||
}, 3000);
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
@ -74,12 +77,15 @@ function EntityActions(props: Props) {
|
||||
})
|
||||
.then(({ errors }) => {
|
||||
if (!errors) {
|
||||
refetchForEntity?.();
|
||||
setIsBatchSetDomainModalVisible(false);
|
||||
message.success({
|
||||
content: `Added assets to Domain!`,
|
||||
duration: 2,
|
||||
});
|
||||
message.loading({ content: 'Updating...', duration: 3 });
|
||||
setTimeout(() => {
|
||||
message.success({
|
||||
content: `Added assets to Domain!`,
|
||||
duration: 3,
|
||||
});
|
||||
refetchForEntity?.();
|
||||
}, 3000);
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user