mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
alova - update comments
This commit is contained in:
@@ -28,7 +28,6 @@ export const updateValueDirty =
|
||||
const updated_value = extractEventValue(event);
|
||||
const name = event.target.name;
|
||||
|
||||
// TODO not sure how this is even working!!
|
||||
updateDataValue((prevState) => ({
|
||||
...prevState,
|
||||
[name]: updated_value
|
||||
@@ -36,11 +35,6 @@ export const updateValueDirty =
|
||||
|
||||
const arr: string[] = dirtyFlags;
|
||||
|
||||
// TODO remove comments
|
||||
// console.log('updating ' + name + ' to ' + updated_value);
|
||||
// console.log('dirtyFlags:', dirtyFlags);
|
||||
// console.log('binding.ts origData:', origData);
|
||||
|
||||
if (origData[name] !== updated_value) {
|
||||
if (!arr.includes(name)) {
|
||||
arr.push(name);
|
||||
|
||||
Reference in New Issue
Block a user