fix: preserve bid drafts and align tender source data

This commit is contained in:
2026-09-06 08:40:10 +03:00
parent c91631d99f
commit 456728b4bd
26 changed files with 510 additions and 81 deletions
+2 -2
View File
@@ -279,10 +279,10 @@ export const AppProvider = ({ children }) => {
.then(detail => {
if (cancelled || !detail.aciklama) return;
setActiveTenderDetail(prev =>
prev && prev.id === t.id ? { ...prev, aciklama: detail.aciklama } : prev
prev && prev.id === t.id ? { ...prev, ...detail } : prev
);
setTenders(prev =>
prev.map(x => (x.id === t.id ? { ...x, aciklama: detail.aciklama } : x))
prev.map(x => (x.id === t.id ? { ...x, ...detail } : x))
);
})
.catch(() => {});