Closed albertogasparin closed 7 years ago
It was fixed in Nov 4th, 2013 and updated in Mar 13rd, 2014
https://github.com/knadh/localStorageDB/blame/ab7c0a227ecaecbe6c92db98e4ce831994cd6dfc/localstoragedb.js#L346 https://github.com/knadh/localStorageDB/blame/master/localstoragedb.js#L387
This issue may be closed.
This code updates all the records instead of none:
The issue should be on
validFields()
function, where you are doing a "simple"if(data[field])
instead of a type checking.