Skip to content

Commit

Permalink
Merge pull request #526 from TAMUSHPE/fix-doc-links
Browse files Browse the repository at this point in the history
refetch after editing points
  • Loading branch information
JasonIsAzn authored Sep 13, 2024
2 parents e6b2653 + 8bd05c1 commit 0751ccb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shpe-app-web/app/(main)/points/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ const Points = () => {
setOriginalPoints(editedPoints);
setIsEditing(null);
alert("Points have been updated successfully.");

// Clear the cached data to force refetch
localStorage.removeItem('cachedMembers');
localStorage.removeItem('cachedPoints');
localStorage.removeItem('cachedMembersTimestamp');

} catch (error) {
console.error("Failed to save changes:", error);
}
Expand Down

0 comments on commit 0751ccb

Please sign in to comment.