💄 fix labels dropdown flicker if no changes applied

This commit is contained in:
Fred KISSIE
2026-07-20 17:36:45 +01:00
parent 9561d23f1e
commit 56fcb80b23
+4 -1
View File
@@ -95,7 +95,10 @@ export function useOptimisticLabels({
}
async function refresh() {
router.refresh();
// Only refresh if the labels have been modified
if (pendingActions.length > 0) {
router.refresh();
}
setPendingActions([]);
}