From 9bedb055e35efda051c3cabdf04bf1762b0a6cb1 Mon Sep 17 00:00:00 2001 From: Erwin Gronek Date: Tue, 3 Dec 2024 09:38:34 +0100 Subject: [PATCH] [ZARS-699][ADD] refactoring --- src/modules/proposal/utils/is-done-overview.util.ts | 2 +- src/modules/proposal/utils/merge-proposal.util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/proposal/utils/is-done-overview.util.ts b/src/modules/proposal/utils/is-done-overview.util.ts index d5043a9..6f79d49 100644 --- a/src/modules/proposal/utils/is-done-overview.util.ts +++ b/src/modules/proposal/utils/is-done-overview.util.ts @@ -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(obj[key]) && typeof obj[key].getMonth !== 'function') { acc.push(...findIsDone(obj[key] as Proposal, pathToValue)); } diff --git a/src/modules/proposal/utils/merge-proposal.util.ts b/src/modules/proposal/utils/merge-proposal.util.ts index b79bf09..b54da97 100644 --- a/src/modules/proposal/utils/merge-proposal.util.ts +++ b/src/modules/proposal/utils/merge-proposal.util.ts @@ -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(source[key]) && typeof source[key].getMonth !== 'function') { if (!target[key]) Object.assign(target, { [key]: {} }); mergeDeep(target[key], source[key]); } else {