Commit c2f471fb authored by Ray Bellis's avatar Ray Bellis

use existing method to create unknown vendors

parent ea949ba5
......@@ -287,10 +287,7 @@ function vendor(id)
// create default Vendor object if not found
if (!vendors.has(id)) {
const name = `Vendor${id}`;
const v = new Vendor(name, id);
vendors.set(id, v);
vendors.set(name.toLowerCase(), v);
addVendor(`Vendor${id}`, id);
}
return vendors.get(id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment