@vexip-ui/utils
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -391,3 +391,3 @@ export declare function addDays(date: Dateable, amount: number): Date; | ||
*/ | ||
export declare function mergeObjects<T extends Record<string, unknown>, U extends Record<string, unknown>>(sourceObj: T, targetObj: U, isNewObj?: boolean): T & U; | ||
export declare function mergeObjects<T extends Record<string, any>, U extends Record<string, any>>(sourceObj: T, targetObj: U, isNewObj?: boolean): T & U; | ||
@@ -394,0 +394,0 @@ export declare const MINUTE_ON_MILLS: number; |
@@ -1588,3 +1588,2 @@ var __defProp = Object.defineProperty; | ||
const item = loop.shift(); | ||
let id; | ||
let children = []; | ||
@@ -1595,7 +1594,6 @@ const childrenValue = item[childField]; | ||
} | ||
if (item[keyField]) { | ||
id = item[keyField]; | ||
} else { | ||
id = idCount++; | ||
if (!item[keyField]) { | ||
item[keyField] = idCount++; | ||
} | ||
const id = item[keyField]; | ||
if (hasRootId ? item[parentField] === rootId : !item[parentField]) { | ||
@@ -1602,0 +1600,0 @@ item[parentField] = rootId; |
{ | ||
"name": "@vexip-ui/utils", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "qmhc", |
78943
2337