Skip to content

Commit

Permalink
fix: add a force reload when item get validated
Browse files Browse the repository at this point in the history
  • Loading branch information
louisewang1 committed Mar 29, 2022
1 parent a3b3a9d commit 7a796ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/item/sharing/ItemPublishConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ const ItemPublishConfiguration = ({
itemValidationStatus === ITEM_VALIDATION_STATUSES.FAILURE
)
validateItem({ itemId });

// force to reload the page
// TODO: any better method to reload this component only?
setTimeout(() => {
// eslint-disable-next-line no-restricted-globals
location.reload();
}, 3000);
};

const publishItem = () => {
Expand Down

0 comments on commit 7a796ba

Please sign in to comment.