mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
fix: First/last being extended on proxy objects (#5140)
* fix: first/last being extended on proxy objects * fix: better method that won't require changes later
This commit is contained in:
parent
14a61f6ab1
commit
9dca984c0c
|
@ -227,7 +227,6 @@ export function extend(input: unknown, functionName: string, args: unknown[]) {
|
||||||
if (
|
if (
|
||||||
inputAny &&
|
inputAny &&
|
||||||
functionName &&
|
functionName &&
|
||||||
functionName in inputAny &&
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
typeof inputAny[functionName] === 'function'
|
typeof inputAny[functionName] === 'function'
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue