diff --git a/public/app.js b/public/app.js index cc4491c..bc9bb55 100644 --- a/public/app.js +++ b/public/app.js @@ -905,7 +905,14 @@ async function selectTable(schema, tableName) { const newValue = cell.getValue(); // Проверяем, действительно ли значение изменилось - if (oldValue === newValue || (oldValue == null && newValue === '') || (oldValue === '' && newValue == null)) { + // Учитываем преобразование типов (число vs строка) + const valuesEqual = oldValue === newValue || + (oldValue == null && newValue === '') || + (oldValue === '' && newValue == null) || + (typeof oldValue === 'number' && String(oldValue) === newValue) || + (typeof newValue === 'number' && String(newValue) === oldValue); + + if (valuesEqual) { console.log('⏭️ Значение не изменилось:', cell.getField(), oldValue, '→', newValue); cell.getRow().getElement().style.backgroundColor = ''; return;