don't overwrite Product default values

This commit is contained in:
Ben Miller
2024-11-19 13:15:36 -07:00
parent 69c8870ff0
commit ce0c233dd3

View File

@ -66,7 +66,12 @@ export class Product {
if (this.hasOwnProperty(headers[i])) { if (this.hasOwnProperty(headers[i])) {
if (productValues[i] == "?") { if (productValues[i] == "?") {
console.log("skipping '" + headers[i] + "'") console.log("skipping '" + headers[i] + "'")
this[headers[i]] = "" continue
}
if (productValues[i] == "") {
console.log(
"keeping '" + headers[i] + "' default: '" + this[headers[i]] + "'"
)
continue continue
} }
console.log( console.log(