diff --git a/web/kanban-order.js b/web/kanban-order.js index 3b1d6cd..0a047a9 100644 --- a/web/kanban-order.js +++ b/web/kanban-order.js @@ -506,6 +506,13 @@ async function saveFinalFiles(order, files, note){ say('O arquivo final já estava aprovado.'); return true; } + // Changed elsewhere meanwhile (another tab or person) and still waiting for + // these finals: the person already confirmed them, so try once more with + // the fresh version; the server checks everything again (Sentry DTF-WEB-7). + if(fresh&&!fresh.cancelled_at){ + await api('/orders/'+order.id+'/final-files',{version:fresh.version,files,note}); + return false; + } throw error; } }