mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-21 21:16:30 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56fcb80b23 |
@@ -95,7 +95,10 @@ export function useOptimisticLabels({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function refresh() {
|
async function refresh() {
|
||||||
router.refresh();
|
// Only refresh if the labels have been modified
|
||||||
|
if (pendingActions.length > 0) {
|
||||||
|
router.refresh();
|
||||||
|
}
|
||||||
setPendingActions([]);
|
setPendingActions([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user