mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Rename and move isObjectLiteral utility function (no-changelog) (#7565)
This commit is contained in:
@@ -34,7 +34,7 @@ import type {
|
||||
|
||||
import { get } from 'lodash-es';
|
||||
|
||||
import { isObjectLiteral } from '@/utils';
|
||||
import { isObject } from '@/utils';
|
||||
import { getCredentialPermissions } from '@/permissions';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
@@ -65,7 +65,7 @@ export const nodeHelpers = defineComponent({
|
||||
isCustomApiCallSelected(nodeValues: INodeParameters): boolean {
|
||||
const { parameters } = nodeValues;
|
||||
|
||||
if (!isObjectLiteral(parameters)) return false;
|
||||
if (!isObject(parameters)) return false;
|
||||
|
||||
return (
|
||||
(parameters.resource !== undefined && parameters.resource.includes(CUSTOM_API_CALL_KEY)) ||
|
||||
|
||||
Reference in New Issue
Block a user