Skip to content

Commit

Permalink
[ZARS-699][ADD] refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
af-egr committed Dec 3, 2024
1 parent 935ac4f commit 9bedb05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/proposal/utils/is-done-overview.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const findIsDone = (obj: Proposal, path?: string) => {
.filter((item) => item.length)
.flat(10);
acc.push(...items);
} else if (isObject(obj[key]) && typeof (obj[key] as any).getMonth !== 'function') {
} else if (isObject<any>(obj[key]) && typeof obj[key].getMonth !== 'function') {
acc.push(...findIsDone(obj[key] as Proposal, pathToValue));
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/proposal/utils/merge-proposal.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const mergeDeep = (target, ...sources) => {

if (isObject(target) && isObject(source)) {
for (const key in source) {
if (isObject(source[key]) && typeof (source[key] as any).getMonth !== 'function') {
if (isObject<any>(source[key]) && typeof source[key].getMonth !== 'function') {
if (!target[key]) Object.assign(target, { [key]: {} });
mergeDeep(target[key], source[key]);
} else {
Expand Down

0 comments on commit 9bedb05

Please sign in to comment.