mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 11:45:24 +02:00
fix: ensure saved changes persist across app refreshes by updating status logic and merge check
Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
co-authored by
claude-flow
parent
311d74b783
commit
7d37d4777b
@@ -42,8 +42,9 @@ export function CosmeticItemsView({ data, headers, onSaveRow, onCaptureState, ro
|
|||||||
|
|
||||||
data.forEach(row => {
|
data.forEach(row => {
|
||||||
const lineVal = String(row[COLUMNS.LINE] ?? '').trim().toUpperCase();
|
const lineVal = String(row[COLUMNS.LINE] ?? '').trim().toUpperCase();
|
||||||
const isCosmeticLine = COSMETIC_LINES.some(l => lineVal === l);
|
if (!COSMETIC_LINES.some(l => lineVal === l)) return;
|
||||||
if (!isCosmeticLine) return;
|
const cpnp = row[COLUMNS.CPNP_NO];
|
||||||
|
if (cpnp !== null && cpnp !== undefined && String(cpnp).trim() !== '') return;
|
||||||
|
|
||||||
columns.forEach(({ col }) => {
|
columns.forEach(({ col }) => {
|
||||||
result[col].add(String(row[col] ?? ''));
|
result[col].add(String(row[col] ?? ''));
|
||||||
|
|||||||
Reference in New Issue
Block a user