mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 08:51:16 -05:00
Refactor: Implement logging and JSONB cleanup
This commit is contained in:
@@ -72,7 +72,6 @@ export const QueueItemActions = memo(({
|
||||
() => {
|
||||
// Extra guard against race conditions
|
||||
if (actionLoading === item.id) {
|
||||
console.warn('⚠️ Action already in progress, ignoring duplicate request');
|
||||
return;
|
||||
}
|
||||
onApprove(item, 'approved', notes[item.id]);
|
||||
@@ -84,7 +83,6 @@ export const QueueItemActions = memo(({
|
||||
const handleReject = useDebouncedCallback(
|
||||
() => {
|
||||
if (actionLoading === item.id) {
|
||||
console.warn('⚠️ Action already in progress, ignoring duplicate request');
|
||||
return;
|
||||
}
|
||||
onApprove(item, 'rejected', notes[item.id]);
|
||||
@@ -128,7 +126,6 @@ export const QueueItemActions = memo(({
|
||||
const handleReverseApprove = useDebouncedCallback(
|
||||
() => {
|
||||
if (actionLoading === item.id) {
|
||||
console.warn('⚠️ Action already in progress, ignoring duplicate request');
|
||||
return;
|
||||
}
|
||||
onApprove(item, 'approved', notes[`reverse-${item.id}`]);
|
||||
@@ -140,7 +137,6 @@ export const QueueItemActions = memo(({
|
||||
const handleReverseReject = useDebouncedCallback(
|
||||
() => {
|
||||
if (actionLoading === item.id) {
|
||||
console.warn('⚠️ Action already in progress, ignoring duplicate request');
|
||||
return;
|
||||
}
|
||||
onApprove(item, 'rejected', notes[`reverse-${item.id}`]);
|
||||
|
||||
Reference in New Issue
Block a user