Glossary: Worked on the refetching data issue (#5638)

This commit is contained in:
Ankit keshari 2022-08-17 03:11:02 +05:30 committed by GitHub
parent 9143663f1f
commit d04138aec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {