wip(freight): migration 0017 + model/column-list groundwork for add-freight-templates
This commit is contained in:
@@ -19,9 +19,10 @@ function deepMerge<T extends Tree>(base: T, extra: Tree): T {
|
||||
const out: Tree = { ...base };
|
||||
for (const [k, v] of Object.entries(extra)) {
|
||||
const b = out[k];
|
||||
out[k] = b && v && typeof b === "object" && typeof v === "object"
|
||||
? deepMerge(b as Tree, v as Tree)
|
||||
: v;
|
||||
out[k] =
|
||||
b && v && typeof b === "object" && typeof v === "object"
|
||||
? deepMerge(b as Tree, v as Tree)
|
||||
: v;
|
||||
}
|
||||
return out as T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user