mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 14:25:23 +02:00
fix: restore CPNP No. from Supabase and simplify column filter matching in Cosmetic Items
Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
co-authored by
claude-flow
parent
60224931bc
commit
889e98b0ca
+1
-1
@@ -233,7 +233,7 @@ const articleNoIdx = resolvedCols.ARTICLE_NO;
|
||||
|
||||
// Merge logic: Prioritize internal control columns from syncedData or historyData
|
||||
// Use synced.data only if it has internal cols (>= 100), otherwise use hist
|
||||
const syncedHasInternalCols = synced?.data && Object.values(COLUMNS).some(idx => idx >= 100 && synced.data[idx] !== undefined && synced.data[idx] !== null);
|
||||
const syncedHasInternalCols = synced?.data && (synced.data.length > 100 || Object.values(COLUMNS).some(idx => idx >= 100 && synced.data[idx] !== undefined && synced.data[idx] !== null));
|
||||
const sourceForInternal = syncedHasInternalCols ? synced!.data : (hist || synced?.data);
|
||||
|
||||
if (sourceForInternal) {
|
||||
|
||||
Reference in New Issue
Block a user