mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:35:25 +02:00
Fix: Restore missing user edits by refining the data merge logic.
- Migrated 126 manual edits to 'edited' status. - Updated App.tsx to merge rows with 'edited' or 'synced' status. - Protected manual edits from being overwritten by automated Dropbox syncs.
This commit is contained in:
+2
-2
@@ -166,8 +166,8 @@ export default function App() {
|
||||
// Start with Dropbox values (default)
|
||||
let finalRow = [...row];
|
||||
|
||||
// Only preserve Supabase values if there's a PENDING edit for this article
|
||||
if (synced && synced.status === 'pending') {
|
||||
// Only preserve Supabase values if there's a PENDING or EDITED edit for this article
|
||||
if (synced && (synced.status === 'pending' || synced.status === 'edited' || synced.status === 'synced')) {
|
||||
// Keep the manually edited values from Supabase
|
||||
editableColumns.forEach(idx => {
|
||||
if (synced.data[idx] !== undefined && synced.data[idx] !== null) {
|
||||
|
||||
Reference in New Issue
Block a user